Directional Light
self:get_shadow_split_1_offset
ClientRetrieves 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
| Type | Name | Description |
|---|---|---|
float | offset | Current split 1 offset, from 0.0 to 1.0 |
Examples
local entity = light.directional.create()
core.engine.print("info", "Shadow Split 1 Offset:", entity:get_shadow_split_1_offset())self:get_shadow_fade_start
Retrieves the shadow fade start of the directional light, as a proportion of the shadow max distance at which shadows begin fading out
self:get_shadow_split_2_offset
Retrieves the split 2 offset of the directional light's cascade shadow map, as a proportion of the shadow max distance