self:set_shadow_split_2_offset

Client

Sets the split 2 offset of the directional light's cascade shadow map, as a proportion of the shadow max distance


Syntax

local status = self:set_shadow_split_2_offset(
    offset
)

Parameters

TypeNameDescription
floatoffsetSplit 2 offset to apply, from 0.0 to 1.0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set split 2 offset on a directional light
local entity = light.directional.create()

entity:set_shadow_split_2_offset(0.2)

On this page