Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


perLightInfos

An array of LightShadowCasterCullingInfo.
Read time 1 minuteLast updated 12 days ago

Definition

public NativeArray<LightShadowCasterCullingInfo> perLightInfos

Remarks

Each entry in this array is associated with the VisibleLight at the same position in the array CullingResults.visibleLights. Therefore, both arrays must have the same size. The LightShadowCasterCullingInfo.splitRange of each entry describes a range in the array ShadowCastersCullingInfos.splitBuffer. An entry with LightShadowCasterCullingInfo.splitRange set to (0,0) will cause shadow casters culling and shadow maps rendering to be skipped for this light.