light.directional.shadow_mode

Client

Enumeration of shadow rendering modes available for the directional light


Values

ConstantDescription
light.directional.shadow_mode.ORTHOGONALRenders the entire scene's shadow map from a single orthogonal view. Fastest mode but may result in blurrier shadows on close objects
light.directional.shadow_mode.PARALLEL_2_SPLITSSplits the view frustum into 2 areas, each with its own shadow map. A balance between ORTHOGONAL and PARALLEL_4_SPLITS
light.directional.shadow_mode.PARALLEL_4_SPLITSSplits the view frustum into 4 areas, each with its own shadow map. Highest quality directional shadows, most expensive to render

Examples

Set directional light shadow mode to 4-split cascades
local entity = light.directional.create()

entity:set_shadow_mode(light.directional.shadow_mode.PARALLEL_4_SPLITS)

On this page