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
네임스페이스: UnityEngine.Rendering.Universal
어셈블리: solution.dll
구문
public int mainLightIndex
반환
타입 | 설명 |
---|---|
int |