CullingSplitMask
Flags used by DrawingSettings.splitMask to filter rendered objects by their split culling region.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
[Flags]public enum CullingSplitMask : byte
Remarks
When ScriptableCullingParameters.splitPlaneCount is greater than zero, the culling system classifies each visible object by comparing its bounds against the split culling planes. Each flag selects which region of objects a draw call should include.
This enum uses the same per-object split mask infrastructure as shadow cascade splits. When ScriptableCullingParameters.splitPlaneCount is zero, the entire split path is skipped and DrawingSettings.splitMask has no effect.
Additional Resources: DrawingSettings.splitMask, ScriptableCullingParameters.splitPlaneCount, ScriptableCullingParameters.SetSplitCullingPlane.
Fields
Value | Description |
|---|---|
| DrawAll | Include all visible objects regardless of split region. |
| DrawCullingOnly | Include only objects that are inside the culling (wide) frustum but outside the split (foveal) planes. |
| DrawNone | Exclude all objects from the draw call, regardless of split region. |
| DrawSplitOnly | Include only objects that are inside the split (foveal) planes. |