Lysa.nodes  0.0
Lysa 3D Engine
Light Struct Reference

Detailed Description

Base class for all light-emitting nodes.

Inherits from: Node

Lua full name: lysa.nodes.Light

Properties

lysa.float4 color_and_intensity
 The light color and intensity (xyz = linear RGB color, w = intensity scalar).
 
boolean cast_shadows
 Whether this light generates a shadow map.
 
integer shadow_map_size
 Resolution of the shadow map texture in pixels (e.g. 1024, 2048).
 
number shadow_transparency_scissors
 Alpha threshold used to discard transparent fragments from the shadow map.
 
number shadow_transparency_color_scissors
 Color brightness threshold used to discard fully saturated transparent fragments from the shadow map.
 

Property Documentation

lysa.float4 color_and_intensity

The light color and intensity (xyz = linear RGB color, w = intensity scalar).

boolean cast_shadows

Whether this light generates a shadow map.

integer shadow_map_size

Resolution of the shadow map texture in pixels (e.g. 1024, 2048).

number shadow_transparency_scissors

Alpha threshold used to discard transparent fragments from the shadow map.

number shadow_transparency_color_scissors

Color brightness threshold used to discard fully saturated transparent fragments from the shadow map.