...

/

Working with Basic Lights: DirectionalLight

Working with Basic Lights: DirectionalLight

Learn about THREE.DirectionalLight in Three.js and how to customize its properties.

The THREE.DirectionalLight

This type of light source can be considered as a light that is very far away. All the light rays it sends out are parallel to each other. A good example of this is the Sun. The Sun is so far away that the light rays we receive on Earth are (almost) parallel to each other. The main difference between THREE.DirectionalLight and THREE.SpotLight is that this light won’t diminish the farther it gets from the source as it does with THREE.SpotLight (we can fine-tune this with the ...