Version: 2020.1

CullingResults.GetShadowCasterBounds

切换到手册
public bool GetShadowCasterBounds (int lightIndex, out Bounds outBounds);

参数

lightIndex 阴影投射光源的索引。
outBounds 要计算的边界。

返回

bool 如果光源影响了场景中至少一个阴影投射对象,则为 true。

描述

返回封装了可见阴影投射物的包围盒。例如,这可用于动态调整级联范围。