# 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="/files/grMmpWnQg6anIRNTjiW3" alt=""><figcaption><p>Indirect Evaluation Method set to None</p></figcaption></figure>
{% endtab %}

{% tab title="Tracing" %}

<figure><img src="/files/Li7DeaOUZUva9exkeLkU" alt=""><figcaption><p>Indirect Evaluation Method set to Tracing + DLSS used as a denoiser</p></figcaption></figure>
{% endtab %}

{% tab title="Approximation" %}

<figure><img src="/files/c4bAwph6w3SX5s9omb7J" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ipgames.gitbook.io/htracepatreon/htrace-tools/htrace-wsgi-in-ray-traced-reflections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
