Version: Unity 6.7 LTS (6000.7)
Language : English
Add Surface Cache lighting to a custom shader
Surface Cache Global Illumination Volume Override reference for URP

Troubleshooting Surface Cache Global Illumination

Issues with Surface Cache Global Illumination (GI) usually appear just after you enable it in a scene, or when you move the camera through a scene that already uses it. Some of them are limitations of the feature rather than faults. For the full list of limitations, refer to Real-time global illumination with Surface Cache.

No indirect lighting appears

Surfaces receive direct light from your lights, but no bounced light, so the scene looks flat and shadowed areas are black.

Symptoms

  • Indirect lighting is missing throughout the scene.

  • The Console window shows an error about raw mesh buffers.

  • The Renderer Feature shows a message in the Inspector window.

Cause

Surface Cache GI has project-level requirements that the Renderer Feature can’t satisfy on its own. If Static Batching is enabled, or Default Mesh Buffer Target isn’t set to Raw, Surface Cache GI can’t read the mesh data it needs.

The Volume Override also has no effect unless the Surface Cache Global Illumination Renderer Feature is on the active Universal Renderer.

Resolution

To restore indirect lighting, follow these steps:

  1. Go to Edit > Project Settings > Player, and in Other Settings, disable Static Batching.

  2. Go to Edit > Project Settings > Graphics, and in Mesh Settings, set Default Mesh Buffer Target to Raw.

  3. Select the Universal Renderer asset your project uses, and check that it has the Surface Cache Global Illumination Renderer Feature.

  4. Select the Volume, and in the Surface Cache Global Illumination override, check the following:

  5. State is set to Enabled.

  6. Intensity is closer to 1 than 0, so the lighting contribution is visible. This property is in Advanced Properties, which you can display from the More (⋮) menu.

For the full procedure, refer to Set up Surface Cache Global Illumination.

Lighting doesn’t update in the Scene view

Lighting looks correct in the Game view, but the Scene view shows stale or partly resolved lighting.

Symptoms

  • Indirect lighting in the Scene view doesn’t settle, or doesn’t respond when you move a light.
  • Lighting updates slowly, as if the feature were performing poorly.
  • The Renderer Feature shows a message about Always Refresh in the Inspector window.

Cause

The Scene view redraws only when something changes. Surface Cache GI needs several consecutive frames to accumulate and filter lighting, so it never settles in a view that isn’t redrawing continuously.

Resolution

To make the Scene view redraw every frame, follow these steps:

  1. In the Scene view, select the View Options overlay.
  2. In the Effects dropdown, enable Always Refresh.

Surfaces turn completely black temporarily as the camera moves

Parts of the scene lose all indirect lighting while the camera moves, then recover a moment later.

Symptoms

  • Completely black patches appear on surfaces the camera has just revealed.

Cause

Surface Cache GI keeps a limited number of patches in memory at once. Fast camera movement, combined with a high patch resolution, can reveal new patches faster than Unity can free up slots for them.

Resolution

To reduce the effect, adjust the following properties in the Surface Cache Global Illumination Volume Override:

  • Increase Defrag Count, so Unity reclaims patch memory faster.
  • Reduce the total number of patches by lowering Resolution or Cascade Count, or by reducing Size and enabling Distance Fallback.

For more information, refer to Tune Surface Cache Global Illumination quality and performance.

Surfaces look noisy or unstable as the camera moves

Parts of the scene look noisy or flicker for a few frames after the camera reveals them, then settle.

Symptoms

  • Newly revealed surfaces look noisy or temporally unstable, but not completely black.
  • The effect settles after a few frames.

Cause

Surface Cache GI creates new patches as it adapts to scene and camera changes, and each patch needs several frames of samples before its lighting is stable. A newly allocated patch hasn’t accumulated enough samples yet.

Resolution

To reduce the effect, adjust the following properties in the Surface Cache Global Illumination Volume Override:

  • Increase Warm-up Sample Multiplier, so newly revealed surfaces accumulate samples faster. Scenes with complex lighting might need a higher value.
  • Enable Bounce Patch Allocation, so Unity can allocate patches before the camera reveals them. This costs more patches overall, and works best in small interior scenes rather than large open worlds.

For more information, refer to Tune Surface Cache Global Illumination quality and performance.

Light leaks through walls and floors

Indirect light appears on the wrong side of a surface, for example daylight bleeding into an enclosed interior.

Symptoms

  • Interiors receive light that should be blocked by geometry.
  • Corners and the junctions between walls and floors look too bright.

Cause

Patches cover an area rather than a point, so a patch near a thin wall can gather light from both sides. Larger patches make this worse, and spatial filtering spreads lighting further across neighboring patches.

Resolution

To reduce light leaking, adjust the following properties in the Surface Cache Global Illumination Volume Override:

  • Increase Resolution, or reduce Size, so patches cover a smaller area.
  • Reduce Spatial Radius, or disable Spatial Filtering, and increase Sample Count instead to control the noise that returns.

Thicker geometry also helps. A wall built from a single plane gives Unity nothing to separate the two sides with.

Flat surfaces flicker

Flat surfaces that line up with the patch grid, such as a floor at a height of 0, flicker as the camera moves.

Symptoms

  • A flat surface, such as a floor or ceiling, flickers between two lighting values.

Cause

A surface that lines up exactly with the patch grid can resolve to different patches from frame to frame, which produces a visible flicker.

Resolution

Check that Patch Warping is enabled in the Surface Cache Global Illumination Volume Override. It applies a small periodic warp to sample positions before they resolve to a patch, which reduces this flickering.

Lighting doesn’t respond to an environment change

You change the sky or the ambient lighting at runtime, and indirect lighting keeps using the previous environment.

Symptoms

  • Indirect lighting doesn’t follow a changing sky.
  • Direct lighting and the skybox itself update, but bounced light doesn’t.

Cause

When your scene uses a skybox, Unity re-captures the environment only when it detects a change to the skybox material’s properties, or to the sun’s color, intensity, or direction. A change that happens outside those goes undetected. The clearest case is a skybox shader that animates through the _Time uniform, because the material’s own properties never change.

Resolution

This issue has no setting that resolves it. Drive the change through an input Unity detects, such as a skybox material property or the directional light that acts as the sun, rather than through a value the shader reads directly.

Performance is worse than expected on some devices

Surface Cache GI costs noticeably more on one device than another with comparable specifications.

Symptoms

  • Frame time rises more than expected when you enable Surface Cache GI.
  • The same scene and settings cost more on one graphics API than another.

Cause

Unity automatically uses hardware ray tracing when a device supports it, and falls back to ray tracing in a compute shader when it doesn’t. The compute path is slower, so the cost of Surface Cache GI can differ between devices.

Resolution

To identify and reduce the cost, follow these steps:

  1. Use your platform’s GPU profiler to check whether ray tracing or screen filtering costs more on the device you’re testing.
  2. If ray tracing costs more, reduce Sample Count or Resolution, or both.
  3. If screen filtering costs more, reduce Lookup Count or Denoising Pass Count, or both.
  4. Compare frame times on your target devices rather than in the Editor, so you measure the path each device actually takes.

For more information, refer to Tune Surface Cache Global Illumination quality and performance.

Additional resources

Add Surface Cache lighting to a custom shader
Surface Cache Global Illumination Volume Override reference for URP