Constructor
new DirectionalLight( color : number | Color | string, intensity : number )
Constructs a new directional light.
| color |
The light's color. Default is |
| intensity |
The light's strength/intensity. Default is |
Properties
.isDirectionalLight : boolean (readonly)
This flag can be used for type testing.
Default is true.
.shadow : DirectionalLightShadow
This property holds the light's shadow configuration.
.target : Object3D
The directional light points from its position to the target's position.
For the target's position to be changed to anything other than the default, it must be added to the scene.
It is also possible to set the target to be another 3D object in the scene. The light will now track the target object.