# Path Tracing

The project is designed with Path Tracing in mind, making the demonstration City Scene fully prepared for high-quality, path-traced rendering.

To use the optimal settings for path tracing, select "B\_Settings" from the scene and enable the "Path Tracing" checkbox.

<div align="left"><figure><img src="https://2480282861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XXseIgvPYoGveRHX93M%2Fuploads%2FG5QTwyvwQT5p1nZcp8rB%2F2024-11-11_22h41_06.png?alt=media&#x26;token=ad342181-a28a-44f1-bb26-6720f5acc5ed" alt=""><figcaption></figcaption></figure></div>

The issue arises at certain sun angles where light may “leak” through the building. This happens because, in path tracing, shadows are generated differently than in virtual or cascaded shadowing techniques.

<div align="left"><figure><img src="https://2480282861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XXseIgvPYoGveRHX93M%2Fuploads%2Fi1Fq8c3Ln8dNGdzBii5X%2F2025-11-08_13h58_54.png?alt=media&#x26;token=8e368aba-1e5f-4551-a52e-ad6896616150" alt=""><figcaption></figcaption></figure></div>

You can resolve this issue by enabling "Block Occlusion" in the Occlusion Culling category for the building where the light is leaking:

<div align="left"><figure><img src="https://2480282861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XXseIgvPYoGveRHX93M%2Fuploads%2FSPnszi9XQ2pjV4xkdTyE%2F2024-11-11_23h13_25.png?alt=media&#x26;token=b948a42c-15bf-4a59-8316-b097a99f6062" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://2480282861-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XXseIgvPYoGveRHX93M%2Fuploads%2FtjjZF3hZGj7kI2L7hUmK%2F2025-11-08_13h59_42.png?alt=media&#x26;token=7e87f1e5-860a-43a2-b076-80c97f384cc5" alt=""><figcaption></figcaption></figure></div>

Enabling this option will generate an interior "block" shaped like the building to prevent light leakage. It's not performance-efficient, so it's recommended only for use with path tracing.
