directionalLight

light
directionalLight
RayTK
v0.39

A directional light.

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

Parameters

Name Description Regular Handling Read-Only Handling
Direction Runtime Baked
Intensity Runtime Baked
Color Runtime Baked
Rotate Runtime Baked
Enable Shadow Runtime Semi-Baked

Inputs

  • Color Field: (optional)
    • Coordinate Types: vec3
    • Context Types: LightContext
    • Return Types: float vec4
    • Supports Variables: lightdir

Variables

  • lightdir: