Surface Cache Global Illumination (GI) needs two project settings, a Renderer Feature, and a Volume Override. This page covers all four, in the order you configure them.
Surface Cache GI replaces baked global illumination rather than adding to it, so before you follow these steps, make sure it suits your project. Refer to Real-time global illumination with Surface Cache.
Before you begin, make sure that:
Surface Cache GI needs every mesh to be readable from a shader.
To make mesh data accessible from shaders, follow these steps:
You can’t change this setting in Play mode. For more information, refer to Graphics project settings reference.
To enable Surface Cache GI for a renderer, add a Renderer Feature to the renderer asset.
To add the Renderer Feature, follow these steps:
The Renderer Feature has no settings of its own. If the Inspector window shows a message about Static Batching or Default Mesh Buffer Target, go back to the previous steps and fix the setting it names. For more information about Renderer Features, refer to Add a Renderer Feature to a URP Renderer.
The Volume Override controls how Surface Cache GI behaves, and which part of your scene it covers.
To add the Volume Override, follow these steps:
Surface Cache GI is active as soon as you add the override. To disable Surface Cache GI for the cameras this Volume affects, set State to Disabled.
For the full list of properties, refer to Surface Cache Global Illumination Volume Override reference for URP.
By default, the Scene view redraws only when something changes, so Surface Cache GI appears not to settle. To see it update continuously, follow these steps:
For more information, refer to View Options overlay reference.
Your scene now receives indirect diffuse lighting that updates as you move lights and geometry. Lighting takes a few frames to settle, and settles again each time the camera reveals new surfaces.
Unity no longer applies indirect light from lightmaps or Adaptive Probe Volumes to opaque surfaces, so expect the look of your scene to change. To adjust quality and performance, refer to Tune Surface Cache Global Illumination quality and performance.