文档

Unity Engine

Unity Engine

perLightInfos

An array of LightShadowCasterCullingInfo.
阅读时间1 分钟最后更新于 1 个月前

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.