Lysa.nodes  0.0
Lysa 3D Engine
DirectionalLight Class Referenceabstract

Detailed Description

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.
 

Member Function Documentation

DirectionalLight create ( lysa.float4  color)
static

Creates a DirectionalLight with the given color and intensity (xyz = RGB, w = intensity).

Parameters
colorlysa.float4
Returns
DirectionalLight

Property Documentation

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.