Light Cluster
To compute light bounces for ray-traced effects, such as Reflections, Global Illumination, Recursive Rendering, or path tracing. HDRP uses a structure to store the set of Lights that affect each region. In rasterization, HDRP uses the tile structure for opaque objects and the cluster structure for transparent objects. The main difference between these two structures and this one used for ray tracing is that this one is not based on the Camera frustum. For ray tracing, HDRP builds an axis-aligned grid which, in each cell, stores the list of Lights to fetch if an intersection occurs in that cell. Use this Volume Override to change how HDRP builds this structure.
Light Cluster Debug Mode
Using a Light Cluster
Light Clusters use the Volume framework, so to enable this feature, and modify its properties, you need to add a Light Cluster override to a Volume in your Scene. To do this:
- In the Scene or Hierarchy view, select a GameObject that contains a Volume component to view it in the Inspector.
- In the Inspector, navigate to Add Override > Ray Tracing and click on Light Cluster.
Properties
Property | Description |
---|---|
Camera Cluster Range | The range of the cluster grid in meters. The cluster grid itself has its center on the Camera's position and extends in all directions because an intersection may occur outside of the Camera frustum. |