文档

Unity Engine


User Manual

Script Reference

Unity Engine


Light Probe validity in Adaptive Probe Volumes in URP

Solve common issues with URP marking a Light Probe as invalid when sampling rays hit the unlit backfaces inside geometry.
阅读时间1 分钟最后更新于 22 天前

Light Probes inside geometry are called invalid probes. The Universal Render Pipeline (URP) marks a Light Probe as invalid when the probe fires sampling rays to capture surrounding light data, but the rays hit the unlit backfaces inside geometry.
URP uses the following techniques to minimise incorrect lighting data from Light Probes:
  • Virtual Offset tries to make invalid Light Probes valid, by moving their capture points so they're outside any colliders.
  • Dilation detects Light Probes that remain invalid after Virtual Offset, and gives them data from valid Light Probes nearby.
  • Rendering Layers prevent objects from sampling probes that are on another Layer Mask, reducing light leaking in certain scenarios.
You can check which Light Probes are invalid using the Rendering Debugger

In the Scene on the left, Virtual Offset isn't active and dark bands are visible. In the Scene on the right, Virtual Offset is active.

In the Scene on the left, Dilation isn't active and some areas are too dark. In the Scene on the right, Dilation is active.