Experimental: this API is experimental and might be changed or removed in the future.

CullResults.GetShadowCasterBounds

Switch to Manual
public bool GetShadowCasterBounds (int lightIndex, out Bounds outBounds);

Parameters

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

Returns

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

Description

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