> For the complete documentation index, see [llms.txt](https://ipgames.gitbook.io/htracepatreon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ipgames.gitbook.io/htracepatreon/htrace-tools/htrace-wsgi-in-ray-traced-reflections.md).

# HTrace WSGI in Ray-Traced Reflections

This page describes a module within the **HTrace: World Space Global Illumination** (WSGI) asset. It provides indirect lighting inside **Unity HDRP's native ray-traced reflections**. This module is exclusive to Patreon.

Please keep in mind that this approach comes with trade-offs and may not be suitable for all projects.

{% embed url="<https://youtu.be/6BmYH1yRbwo?si=Xo2KHudTUOp4RJib>" %}

## Setup&#x20;

1. Download the HTrace WSGI package containing the Reflection module through Patreon, and install it in your project. Once installed, you should see a new foldout in the HTrace UI called **Reflection Indirect Lighting**.
2. Enable **Unity’s ray-traced reflections** and set the to the **Performance** mode.
3. Set the **Indirect Evaluation Method** dropdown in the HTrace UI to either **Tracing** or **Approximation**.

{% tabs %}
{% tab title="None" %}

<figure><img src="https://546597907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQtoKDwHl7VhmCRRNgQi4%2Fuploads%2FRKMyhLJba4jegVOlyuPi%2FImage%20Sequence_039_0000.png?alt=media&amp;token=05d554b5-b4d2-4e8c-a3ce-e23d9a244421" alt=""><figcaption><p>Indirect Evaluation Method set to None</p></figcaption></figure>
{% endtab %}

{% tab title="Tracing" %}

<figure><img src="https://546597907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQtoKDwHl7VhmCRRNgQi4%2Fuploads%2FbMLAjovJ8n1tsnIYMeoF%2FImage%20Sequence_037_0000.png?alt=media&amp;token=50451a45-756f-40c3-8267-46a79786e52a" alt=""><figcaption><p>Indirect Evaluation Method set to Tracing + DLSS used as a denoiser</p></figcaption></figure>
{% endtab %}

{% tab title="Approximation" %}

<figure><img src="https://546597907-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQtoKDwHl7VhmCRRNgQi4%2Fuploads%2FBteLAhsZTSnZVv6HLxBZ%2FImage%20Sequence_038_0000.png?alt=media&amp;token=f0e1b74c-9df0-4a65-a344-6303501235c9" alt=""><figcaption><p>Indirect Evaluation Method set to Approximation</p></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Indirect lighting is only visible within the first bounce of ray-traced reflections. Recursive bounces are not supported at the moment. For multiple bounces, consider using reflection fallbacks such as the sky or reflection probes.
{% endhint %}
