Surface Cache Global Illumination (GI) calculates indirect diffuse lighting while your application runs. It needs no baking and no precomputation, so when you move a light, open a door, or change the time of day, indirect lighting follows within a few frames. You also see the result in the Editor as you work, without waiting for a bake.
Surface Cache GI is available in the Universal Render Pipeline (URP) only. It replaces baked GI rather than adding to it, so adopting it is a decision about your whole lighting approach, not an effect you layer on top.
This page explains how Surface Cache GI works, what it requires, and the limitations to weigh before you adopt it. To compare it with the other ways Unity produces indirect lighting, refer to Introduction to global illumination.
Surface Cache GI stores indirect lighting on the surfaces of your scene rather than in lightmaps or probes. It works in the following stages:
Because the cache follows the camera, lighting is most accurate where the player is looking, and surfaces that have just come into view take a moment to reach full quality.
Surface Cache GI produces indirect diffuse lighting on opaque surfaces inside the Surface Cache volume. It doesn’t produce specular reflections, and it doesn’t light transparent materials. Use Reflection Probes for specular reflections. Transparent materials receive lighting from the ambient probe.
Unity stops applying indirect light from lightmaps and Adaptive Probe Volumes to opaque surfaces while Surface Cache GI is active. Surface Cache GI also keeps its own copy of mesh and surface color data, which uses a significant amount of video memory.
Surface Cache GI requires the following:
Unity automatically uses hardware ray tracing when your device supports it, and falls back to ray tracing in a compute shader when it doesn’t. The compute path is slower, so take this into account when you compare performance across devices.
Surface Cache GI doesn’t react to the following, which can produce lighting that looks wrong rather than lighting that is simply absent:
_Time uniform, may not be detected, and Surface Cache GI keeps using the appearance it last captured._Time uniform. In that case, indirect lighting keeps using the environment Unity captured last.Reflection Probes are a separate case. They work alongside Surface Cache GI, but they don’t capture its contribution, so reflections don’t show indirect diffuse lighting.