# Spatial Denoising

## Filter Radius&#x20;

Defines the radius of the anisotropic filtering disk. The higher the radius, the stronger the noise reduction — however, beyond a certain value, halo-like artifacts may appear around objects. It is recommended to use the lowest value that provides sufficient noise reduction.

*Performance impact: small*

{% tabs %}
{% tab title="Filter Radius 0.1" %}

<figure><img src="https://243555089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLiPpxgft87FiOXU8wYFQ%2Fuploads%2Fh85MYYqk0eCMUP5DCN6l%2FImage%20Sequence_115_0000.jpg?alt=media&#x26;token=009eae93-4283-4cd9-991f-833339a9c8ca" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Filter Radius 1" %}

<figure><img src="https://243555089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLiPpxgft87FiOXU8wYFQ%2Fuploads%2FNKN7iouMw9iFfpE6L4BR%2FImage%20Sequence_116_0000.jpg?alt=media&#x26;token=92ff0bbe-fdab-4abd-a95e-44653c052354" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Contact Occlusion

Adds an additional pass of screen-space occlusion with a very short radius. It runs at a later denoising stage (or even after denoising) and is meant to restore small details lost during spatial filtering, adding another layer of depth to the occlusion. The result of this pass is multiplied with the rest of the occlusion, creating further darkening in corners and at surface intersections. This parameter controls the overall intensity of contact occlusion. Setting it to 0 disables the effect entirely, saving performance.

*Performance impact: moderate*

{% tabs %}
{% tab title="Contact Occlusion 0" %}

<figure><img src="https://243555089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLiPpxgft87FiOXU8wYFQ%2Fuploads%2FH5b2yQUo6ikuvb7uppwt%2FImage%20Sequence_117_0000.jpg?alt=media&#x26;token=d0663492-8038-4025-883b-ba0f26bce9fe" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Contact Occlusion 1" %}

<figure><img src="https://243555089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLiPpxgft87FiOXU8wYFQ%2Fuploads%2FVm0px9VqN8gsOX19TYWt%2FImage%20Sequence_118_0000.jpg?alt=media&#x26;token=f0060e48-f033-4ddb-a344-119f6e46dc3d" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Denoise <mark style="color:$info;">\[Contact Occlusion]</mark>

Activates denoising of the Contact Occlusion effect. When enabled, Contact Occlusion is rendered before the second denoising pass and denoised together with the rest of the data during that pass. When disabled, Contact Occlusion is executed at the very end of the pipeline, providing maximum responsiveness at the cost of increased noise. This option is only shown when Resolution is set to **Full** and Denoising Mode is set to **Double Pass**.

{% hint style="warning" %}
If HTrace AO detects any form of temporal anti-aliasing or upscaling (e.g. TAA, STP, or DLSS) it automatically animates the Contact Occlusion noise pattern so it can be denoised by those temporal algorithms. This approach can be used as an alternative to enabling the **Denoise** option.
{% endhint %}

*Performance impact: none*
