User Tools

Site Tools


light_directional

Description

An object that defines properties of a directional light source.

Parent Objects

Properties

Name Description Default Required
intensity Light intensity, in the [0, 1] range 1.0 no
shadow_type Type of shadowing to use for this light. Valid values are “none”, “shadow_map”, and “raytraced”. “none” no
shadow_softness If the light casts shadows, this is the softness factor to apply to the shadow. 0.0 no
shadow_bias For shadow mapped shadows, this is the shadow bias. 1.0 no

Example

{
    "intensity" : 0.34,
    "shadow_type" : "shadow_map",
    "shadow_softness" : 3.0,
    "shadow_bias" : 2.8,
}