directionalLight

directionalLight

light
directionalLight
RayTK
v0.42

Directional or distant light which always comes from one direction.

The light always comes from the specified direction, rather than from a point.

Parameters

Name Description Regular Handling Read-Only Handling
Direction

Vector pointing which direction the light shines. This vector is automatically normalized.

Runtime Baked
Intensity

Brightness that is applied to the Color.

Runtime Baked
Color

Color of the light.

Runtime Baked
Rotate

Rotates the direction of the light on all 3 axes.

Runtime Baked
Enable Shadow

Whether the light should produce shadows.

Runtime Semi-Baked

Inputs

  • Color Field: (optional) Field controls the color of the light based on the position of surface hits where it is being applied. The resulting color is multiplied by the `Color` parameter and `Intensity`.
    • Coordinate Types: vec3
    • Context Types: LightContext
    • Return Types: float vec4
    • Supports Variables: lightdir

Variables

  • Light Direction: