A directional light source within a View.

  • Illuminates all objects equally from a given direction.
  • Has an emission direction vector in DirLight.dir, but no position.
  • Defined in either World or View coordinate space. When in World-space, DirLight.dir is relative to the World coordinate system, and will appear to move as the Camera moves. When in View-space, DirLight.dir is relative to the View coordinate system, and will behave as if fixed to the viewer's head.
  • AmbientLights, DirLights and PointLights are registered by their Component.id on View.lights.

Constructors

Properties

Accessors

Methods

Constructors

Properties

id: string

ID of this DirLight, unique within the View.

view: View

The View to which this DirLight belongs.

Accessors

Methods