mainLightIndex
Configures what light should be used as main light.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public int mainLightIndex { get; set; }
Remarks
If not set, main light will be the visible brighest directional light. This is used to perform per-object light culling for the main light.
Additional Resources: ScriptableRenderContext.DrawRenderers.