self:get_shadow_split_1_offset

Client

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


Syntax

local offset = self:get_shadow_split_1_offset()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatoffsetCurrent split 1 offset, from 0.0 to 1.0

Examples

Get split 1 offset of a directional light
local entity = light.directional.create()

core.engine.print("info", "Shadow Split 1 Offset:", entity:get_shadow_split_1_offset())

On this page