directionalLight

light
directionalLight
RayTK
v0.36

A directional light.

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

Parameters

  • Direction:
  • Intensity:
  • Color:
  • Rotate:
  • Enable Shadow:

Inputs

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

Variables

  • lightdir: