Version: 2023.1

ShadowSplitData

struct in UnityEngine.Rendering

切换到手册

描述

描述有关给定阴影分割(如定向级联)的剔除信息。

静态变量

maximumCullingPlaneCount剔除平面的最大数量。

变量

cullingMatrixThe model view projection matrix Unity uses to cull objects it renders into this shadow map.
cullingNearPlaneThe near plane distance that Unity uses to cull objects. Unity transforms the objects with ShadowSplitData.cullingMatrix, and then culls the ones that are farther than the near plane distance.
cullingPlaneCount剔除平面的数量。
cullingSphere剔除球体。矢量的前三个组件用于描述球心,最后一个组件用于指定半径。
shadowCascadeBlendCullingFactor 应用于剔除球体半径的乘数。值必须介于 0 到 1 范围内。值越大,Unity 剔除的对象越多。越小,级联共享的渲染对象越多。如果使用较小值,可在不同级联之间混合,因为这样它们会共享对象。

公共函数

GetCullingPlane获取剔除平面。
SetCullingPlane设置剔除平面。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961