Version: 2022.1

BatchCullingContext

struct in UnityEngine.Rendering

切换到手册

描述

剔除批次上下文。

指定执行剔除所需的数据。另请参阅:OnPerformCulling

变量

cullingLayerMaskThe cullingLayerMask value of the object from which the culling is invoked. The draw command is discarded by the internal culling if the expression (1 << layer) & cullingLayerMask is false. Using this field is optional, use it for performance or other optimization purposes.
cullingMatrixCulling matrix.
cullingPlanes要对其剔除的平面。
cullingSplitsThe array of CullingSplit structs.
isOrthographicTrue if the view is orthographic.
localToWorldMatrixLocal to world matrix.
lodParameters另请参阅:LODParameters。
receiverPlaneCountThe number of receiver planes.
receiverPlaneOffsetThe index of the first receiver plane in the BatchCullingContext.cullingPlanes array.
sceneCullingMaskUse this bit mask to discard the draw commands in a particular context. A draw command is not discarded if the expression (1 << layer) & sceneCullingMask is true. This field is typically used when rendering Editor previews.
viewIDThe ID of the object from which the culling is invoked. Usage example: store culling-related data for each object.
viewTypeThe type of the view from which the culling is invoked. Usage examples: skip culling, take different culling paths depending on the view type, etc.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961