DirectionalLight

DirectionalLight

A directional light

Constructor

new DirectionalLight(coloropt)

Parameters:
Name Type Attributes Default Description
color Vector3 <optional>
(1, 1, 1)

The color of the light

Members

(readonly) direction :Vector3

The direction vector of the light

Methods

update(transform)

Updates the light's translation and orientation

Parameters:
Name Type Description
transform Transform