self:set_shadow_split_1_offset

Client

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


Syntax

local status = self:set_shadow_split_1_offset(
    offset
)

Parameters

TypeNameDescription
floatoffsetSplit 1 offset to apply, from 0.0 to 1.0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_shadow_split_1_offset(0.1)

On this page