![]() |
Lysa.nodes
0.0
Lysa 3D Engine
|
A directional light with parallel rays (e.g. sunlight). Supports cascaded shadow maps.
Inherits from: Light
Lua full name: lysa.nodes.DirectionalLight
Public Member Functions | |
| DirectionalLight | create (color: lysa.float4)static |
| Creates a DirectionalLight with the given color and intensity (xyz = RGB, w = intensity). More... | |
Properties | |
| integer | shadow_map_cascades_count |
| Number of shadow map cascades (between 2 and MAX_SHADOW_MAP_CASCADES). | |
| number | cascade_split_lambda |
| Lambda controlling how cascade split depths are distributed; values closer to 1.0 produce smaller (finer) first cascades. | |
|
static |
Creates a DirectionalLight with the given color and intensity (xyz = RGB, w = intensity).
| color | lysa.float4 |
| integer shadow_map_cascades_count |
Number of shadow map cascades (between 2 and MAX_SHADOW_MAP_CASCADES).
| number cascade_split_lambda |
Lambda controlling how cascade split depths are distributed; values closer to 1.0 produce smaller (finer) first cascades.