Graphics Reference
In-Depth Information
In this screenshot, the size of the area is visualized with orange and red lines. By en-
abling this
shadowCameraVisible
property and experimenting with the other val-
ues, you can quickly determine the correct values.
See also
• In Three.js, there are two light sources that can cast shadows:
THREE.SpotLight
and
THREE.DirectionalLight
. In the
Creating
shadows with a THREE.DirectionalLight
recipe, we explain how to cast shad-
ows using
THREE.DirectionalLight
. A more performant but static way
to create shadows is explained in the
Using a shadow map for fixed shadows
recipe in
Chapter 4
,
Materials and Textures
.