Ray-Traced Reflections
Ray-Traced Reflections is a ray tracing feature in the High Definition Render Pipeline (HDRP). It's an alternative, more accurate, ray-traced solution to Screen Space Reflection that can make use of off screen data.
Screen-space reflections
Ray-traced reflections
For information about ray tracing in HDRP, and how to set up your HDRP Project to support ray tracing, see Getting started with ray tracing.
Using Ray-Traced Reflections
This feature replaces the Screen Space Reflection Volume override, so the initial setup is similar. To setup ray traced reflections:
- Follow the Enabling Screen Space Reflection and Using Screen Space Reflection steps to set up the Screen Space Reflection override.
- In the Frame Settings for your Cameras, enable Ray Tracing.
- Select the Screen Space Reflection override and, in the Inspector, enable Ray Tracing. If you don't see a Ray Tracing option, make sure your HDRP Project supports ray tracing. For information on setting up ray tracing in HDRP, see Getting started with ray tracing.
Ray Traced Reflection with Lit Shader Clear Coat
A clear coat simulates a thin transparent layer on top of the material. It's particularly useful for materials with a thin translucent layer over a base layer. Real world examples of such materials include car paints, soda cans, lacquered wood, and acrylic.
If you use a Lit material with Ray Traced Reflection, HDRP uses ray tracing to render indirect specular reflection for the base layer (if that material's Smoothness is above the minimal smoothness specified in the override).
If the material's Coat Mask value is greater than zero, HDRP only uses ray tracing for the transparent smooth clear coat specular reflection. The specular reflection of the base layer of the material falls back to the next reflection method in the reflection hierarchy.
The same principle applies to the StackLit Shader Graph when you enable Coat.
For an example of a 75% smooth Lit material with different Coat Mask values, see the following images:
A Lit material with a Coat Mask value of 0.
A Lit material with a Coat Mask value of 0.1.
A Lit material with a Coat Mask value of 1.0.
Properties
HDRP implements ray-traced reflection on top of the Screen Space Reflection override. For information on the properties that control this effect, see Ray-traced properties.