DirectionalLight.ShadowMode

Values

ValueMeaning
shadowOrthogonal0

Renders the entire scene's shadow map from an orthogonal point of view. This is the fastest directional shadow mode. May result in blurrier shadows on close objects.

shadowParallel2Splits1

Splits the view frustum in 2 areas, each with its own shadow map. This shadow mode is a compromise between constant SHADOW_ORTHOGONAL and constant SHADOW_PARALLEL_4_SPLITS in terms of performance.

shadowParallel4Splits2

Splits the view frustum in 4 areas, each with its own shadow map. This is the slowest directional shadow mode.

Meta