AW WORLD LIGHT Y

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 3.0
SDKbuild 16
Worldbuild 23


AW_WORLD_LIGHT_Y

Type

Floating point

Description

Direction of the directional light, along the Y-axis: -1.0 is straight up (+Y), 1.0 is straight down (-Y).

Notes

The world's light source "shines onto" the sides of objects facing the light source.

In many worlds, the light source represents the sun or moon. Since the light shines in the direction of the vector, the value of this attribute must be between 0.0 and -1.0 in order to achieve the effect of sun-based illumination. Values between 0.0 and 1.0 will cause the light to appear to originate from below the ground.

For version 3.2 and earlier: The direction is where the light is shining from. The opposite of what it means in version 3.3 and later.

Range

Minimum:-1.0 (straight up)
Maximum:1.0 (straight down)
Default:-0.5

See also