BatchCullingContext
Culling context for a batch.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public struct BatchCullingContext
Remarks
Specifies the data required to perform culling. Additional Resources: BatchRendererGroup.OnPerformCulling.
Fields
Value | Description |
|---|---|
| cullingFlags | Additional culling information for the current context. |
| cullingLayerMask | The |
| cullingPlanes | Planes to cull against. |
| cullingSplits | The array of CullingSplit structs. |
| localToWorldMatrix | Local to world matrix. |
| lodParameters | Additional Resources: LODParameters. |
| projectionType | The projection of the view from which the culling is invoked. Usage example: take different culling paths for orthographic vs perspective views. |
| receiverPlaneCount | The number of receiver planes. |
| receiverPlaneOffset | The index of the first receiver plane in the BatchCullingContext.cullingPlanes array. |
| sceneCullingMask | Use this bit mask to discard the draw commands in a particular context. A draw command is not discarded if the expression |
| splitExclusionMask | A bitmask that represents the BatchCullingContext.cullingSplits Unity ignores in a BatchDrawCommand struct. |
| viewID | The ID of the object from which the culling is invoked. Usage example: store culling-related data for each object. |
| viewType | The type of the view from which the culling is invoked. Usage examples: skip culling, take different culling paths depending on the view type, etc. |