THREE.DirectionalLight
The last of the basic lights we will look at is THREE.DirectionalLight. This type of light 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 (which we saw in the previous section) is that this light won't diminish the farther it gets from the target of THREE.DirectionalLight as it does with THREE.SpotLight (you can fine-tune this with the distance and exponent parameters). The complete area that is lit by THREE.DirectionalLight receives the same intensity ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access