Field mainLightIndex
Holds the main light index from the VisibleLight list returned by culling. If there's no main light in the scene, mainLightIndex is set to -1.
The main light is the directional light assigned as Sun source in light settings or the brightest directional light.
CullingResults
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public int mainLightIndex
Returns
| Type | Description |
|---|---|
| int |