泰课首页
技术分享
Unity课程
Manual
Scripting API
unity3d.com
Version:
2017.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Manual
Scripting API
Language:
中文
English
日本語
Español
한국어
Scripting API
Version:
2017.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Experimental
: this API is experimental and might be changed or removed in the future.
CullResults
.ComputeSpotShadowMatricesAndCullingPrimitives
Switch to Manual
public bool
ComputeSpotShadowMatricesAndCullingPrimitives
(int
activeLightIndex
, out
Matrix4x4
viewMatrix
, out
Matrix4x4
projMatrix
, out
Experimental.Rendering.ShadowSplitData
shadowSplitData
);
Parameters
activeLightIndex
编入活动光源数组的索引。
viewMatrix
计算的视图矩阵。
projMatrix
计算的投影矩阵。
shadowSplitData
计算的分割数据。
Returns
bool
如果为 false,则不需要在此帧中渲染此光源的阴影贴图。
Description
计算聚光灯的视图和投影矩阵以及阴影分割数据。
另请参阅:
ShadowSplitData
。