Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CullingSplitMask

Flags used by DrawingSettings.splitMask to filter rendered objects by their split culling region.
Read time 1 minuteLast updated 6 days ago

Definition

[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.

Fields

Value

Description

DrawAllInclude all visible objects regardless of split region.
DrawCullingOnlyInclude only objects that are inside the culling (wide) frustum but outside the split (foveal) planes.
DrawNoneExclude all objects from the draw call, regardless of split region.
DrawSplitOnlyInclude only objects that are inside the split (foveal) planes.