Truss Radiance Cascades 1.0.0
On this page
Radiance Cascades adds diffuse bounce light to URP and HDRP. It traces world-space rays from visible surfaces against a scene built from meshes, skinned meshes and terrain. Light can reach the camera after bouncing off geometry outside the view. Four cascades collect light over different distance ranges, then the renderer resolves the result at camera resolution. The solver runs each frame without a lighting bake or temporal accumulation.
Requirements#
Use a Windows project in Linear color space and a GPU that supports compute shaders and random writes to half-float textures. Use a single camera view with MSAA off. HDRP also requires seven simultaneous render targets. Game and Scene View cameras work within these settings.
| Unity editor | Render pipeline packages |
|---|---|
| 6.0 (6000.0.85f2) | URP 17.0.4 / HDRP 17.0.4 |
| 6.3 (6000.3.29f1) | URP 17.3.0 / HDRP 17.3.0 |
| 6.6 (6000.6.10f1) | URP 17.6.0 / HDRP 17.6.0 |
Keep URP (com.unity.render-pipelines.universal) and Unity Collections (com.unity.collections) installed from the Unity Registry. For HDRP, add the matching version of com.unity.render-pipelines.high-definition and make its pipeline asset active. A project can have both packages installed. The active pipeline determines which integration runs. Built-in Render Pipeline, XR and MSAA are outside this release. Windows Direct3D is the validated graphics environment.
Try the sample#
Both versions of Diffuse Room use colored walls, a diffuse sphere, an emissive panel and a tinted pane. Keep the sample's exposure fixed when comparing lighting.
URP#
- Import Radiance Cascades into a project that uses the Universal Renderer with Render Graph enabled.
- Enable HDR in the URP asset and on the base camera. Set MSAA to Disabled in the pipeline asset.
- Choose Tools > Truss > World GI > Install on Active Universal Renderers.
- Open
Universal/Samples/Diffuse Room/Diffuse Room.unityunderAssets/Truss/RadianceCascades.
The setup command updates the Renderer Data referenced by the active URP asset. If a quality level uses a different URP asset, select that level and run the command again. You can also use Add Renderer Feature > World GI Renderer Feature on each Renderer Data asset. The sample uses ACES and 0 EV post exposure. Enable post-processing on the camera to see that setting.
HDRP#
- In your HDRP project, install the matching HDRP package and assign an HDRP asset.
- Import the main Radiance Cascades asset.
- Choose Tools > Truss > World GI > Import Support for Active Pipeline. Confirm the import of
Pipeline Support/High Definition.unitypackage. - Enable Custom Pass in the HDRP asset and camera Frame Settings. Use Deferred for the camera and turn off MSAA.
- Open
High Definition/Samples/Diffuse Room/Diffuse Room.unityunderAssets/Truss/RadianceCascades.
You can also open the HDRP archive from the Project window. Reimport it after each update. The component registers its custom passes automatically. After the scene is ready, it disables HDRP's built-in indirect diffuse contribution for cameras that include its volume layer. HDRP still handles direct light, emission and reflections.
Set up another scene#
- Add Rendering > Truss > World Radiance Cascades to an active GameObject. Keep one active component across all loaded scenes.
- Include that GameObject's layer in the camera's Volume Mask in URP or Volume Layer Mask in HDRP.
- Set Tracing Backend to Automatic. Keep Quality Preset at Quality while you check the scene.
- Wait for the Inspector to finish preparing geometry and materials.
Unity may spend several minutes compiling shaders the first time a project uses a tracing backend. Let compilation finish before you compare frame times.
If you installed a pre-release UPM build of Radiance Cascades, remove it in Package Manager before you import 1.0.0. If you used the 0.9.x screen-space implementation, remove its old Radiance Cascades custom pass and use the World Radiance Cascades component.
In the sample, switch Debug View between Off and Indirect Diffuse to see the contribution. To compare the normal camera image with and without GI, toggle the component while keeping the camera, lights and exposure fixed.
Lighting controls#
| Inspector label | Use |
|---|---|
| Tracing Backend | Automatic uses hardware on Direct3D 12 GPUs with inline ray queries and software on other supported devices. Software traces in compute. Choose Hardware only on a supported device. |
| Quality Preset | Quality uses the saved probe spacing. Balanced requests 1.25 times that spacing. Fast requests 1.5 times that spacing. Large views can require a coarser grid. |
| Bounce Mode | Single Bounce solves the primary field. Duo Bounce also computes the secondary field. Use Single Bounce to reduce cost. |
| Sky Lighting | Includes the sky or environment for rays that leave the scene. |
| Advanced Settings | Quality Probe Spacing sets the grid in metres. Primary Rays and Secondary Rays set angular sampling. Activation Downsample and Maximum Activation Width control the screen grid that selects world receivers. |
| Reference Diagnostics | Constant Irradiance tests whether camera materials receive diffuse light. Turning off Use Cascades runs the slower software reference tracer. Restore both settings after testing. |
Use Irradiance to inspect incoming light before the receiver's material response. Indirect Diffuse shows the result after that response. Use Receiver Coverage, Surface Normals, Probe Cells and Sample Density to check gaps or sparse sampling. Cascade views let you select Cascade Level from 0 (finest) to 3 (coarsest) and a Transport Field. The secondary field requires Duo Bounce. Set Debug View back to Off for normal rendering.
Materials and geometry#
| Area | What to expect |
|---|---|
| URP opaque | URP 17.3 and 17.6 use the stock Lit irradiance variants. Custom Lit shaders and Shader Graphs need compatible passes to receive that input. URP 17.0 replays supported opaque meshes. Its receiver support for Adaptive Probe Volumes, terrain and procedural or displaced materials is limited. |
| HDRP opaque | Lit, Layered Lit and compatible opaque Lit Shader Graphs receive through their native GBuffer outputs. StackLit, Fabric, opaque Hair and Eye use diffuse approximations. SSS and transmission contribute local diffuse light with limited support for their full shading behavior. |
| Transparent | Supported alpha and premultiplied Lit meshes receive diffuse light. Thin surfaces can transmit and tint rays. Intersecting panes depend on object sorting. Refraction, physical thickness and caustics are outside the model. Clear refractive glass and Unlit materials can affect rays or emit according to their settings. They receive no extra diffuse term. |
| Terrain, decals and mesh motion | Terrain supplies height, holes and blended layers. Decal projectors change existing hits. Supported decal graphs supply color and normal data, with channel limits by pipeline. Rigid and skinned mesh changes update the tracer. GPU deformation such as wind or tessellation has limited ray geometry support. |
Directional, point and spot lights contribute to the solve. HDRP rectangle and tube lights use an approximate emitter shape. When a source light casts shadows, its shadow strength also controls visibility for bounce lighting. A source with shadows off can contribute through occluders.
Water, particles, VFX and volumetric fog lack a dedicated integration. HDRP low-sun Physically Based Sky and downward-facing receivers under a Gradient Sky had larger irradiance errors in earlier tests. Treat those results as approximate. Where native material capture exceeds its storage budget or a player build strips a needed META pass, the tracer can use material properties instead. The Inspector reports capture and decal limits. Check complex Shader Graphs in your target build.
If the Console reports World GI could not prepare the material passes, the affected Shader Graph uses the available material properties for tracing. When the shared texture atlas runs out of slices, excess maps use neutral inputs. Both cases can reduce material detail in bounced light.
If a script modifies mesh vertices or indices in place, call provider.NotifyMeshChanged(mesh) on its WorldGIReference. Use Tools > Truss > World GI > Audit Material Support to write Validation/WorldGI/materials/scene-audit.json in your project. It lists how each material receives diffuse light and how it contributes to rays.
Troubleshooting#
| Symptom | Check |
|---|---|
| No diffuse light appears | Check the active render pipeline, camera's Volume Mask and the active component. Wait for scene preparation. In URP, verify the renderer feature is enabled on the camera's Renderer Data. In HDRP, import the archive and check Deferred and Custom Pass. |
| URP camera or renderer does not show the effect | Use a base Game camera or the Scene View with the Universal Renderer and Render Graph. The result appears in a camera stack's base camera. Overlay cameras, the 2D Renderer and Compatibility Mode have no separate integration. |
| Sky or baked lighting differs from the original image | Keep exposure fixed. Review Sky Lighting and the material limits above. In HDRP, the volume layer controls which cameras use the diffuse replacement. Keep HDRP's own diffuse light on in cameras excluded from that layer. |
| Hardware mode produces no GI | Use Direct3D 12 and a device that reports inline ray query support. Select Automatic or Software to run on a supported compute-only GPU. |
| Performance drops with a large view | Start with Balanced or Fast. Try Single Bounce and compare the time for the same camera in the Unity Profiler. |
Remove the integration#
Remove World Radiance Cascades from the scenes that use it. For URP, also remove World GI Renderer Feature from each Renderer Data asset you configured. You can then remove the Assets/Truss/RadianceCascades folder.