FidelityFX Stochastic Screen-Space Reflections
This sample demonstrates the use of both FidelityFX Stochastic Screen-Space Reflections (SSSR) and the FidelityFX Denoiser.
For details on the techniques that underpin Stochastic Screen-Space Reflections or denoising you can refer to their respective technique documentation.
Requirements
-
Windows
-
DirectX(R)12
-
Vulkan(R)
UI elements
The sample contains various UI elements to help you explore the techniques it demonstrates. The table below summarizes the UI elements and what they control within the sample.
Element name |
Value |
Description |
---|---|---|
Draw Screen Space Reflections |
|
Show or hide the reflections when rendering the scene. |
Show Reflection Target |
|
If checked, the render target containing the reflections will be shown on screen. |
Show Intersection Results |
|
If checked, the raw reflection data (without denoising applied) will be shown on screen. |
Target frame time in ms |
|
Simulates a slower rendering speed. This allows temporal reprojection to be assessed. |
Max. Traversal Iterations |
|
Caps the maximum number of lookups that are performed from the depth buffer hierarchy. Most rays should terminate after approximately 20 lookups. |
Min. Traversal Occupancy |
|
Exit the core loop early if less than this number of threads are running. |
Most Detailed Level |
|
The most detailed MIP map level in the depth hierarchy. Perfect mirrors always use 0 as the most detailed level. |
Depth Buffer Thickness |
|
Bias for accepting hits. Larger values can cause streaks, lower values can cause holes. |
Roughness Threshold |
|
Regions with higher values won’t spawn rays. |
Temporal Stability |
|
Controls the accumulation of history values. Higher values reduce noise, but are more likely to exhibit ghosting artefacts. |
Temporal Variance Threshold |
|
Luminance differences between history results will trigger an additional ray if they are greater than this threshold value. |
Enable Variable Guided Tracing |
|
If checked, a ray will be spawned on pixels where a temporal variance is detected. |
Samples Per Quad |
|
The minimum number of rays per quad. Variance guided tracing can increase this up to a maximum of 4. |
Setting up FidelityFX Stochastic Screen-Space Reflections
The sample contains a dedicated Render Module
for SSSR which creates the context and controls its lifetime. See the quick start guide in the Stochastic Screen-Space Reflections technique documentation for more details on how to integrate the SSSR context in your engine.
A final pass called apply_reflections
is created which takes the output of the SSSR algorithm and composites it on top of the directly lit scene. It’s worth noting that the output render target for the SSSR algorithm is automatically created by Cauldron as described in SSSR’s render module config file.
Sample controls and configurations
For sample controls, configuration, and FidelityFX Cauldron Framework UI element details, see Running the samples .