Graphics Reference
In-Depth Information
Shadows will only be rendered in the area contained by the orange box.
See also
• In Three.js, there are two light sources that can cast shadows:
THREE.SpotLight
and
THREE.DirectionalLight
. In the
Creating
shadows with THREE.SpotLight
recipe, we explain how to cast shadows us-
ing
THREE.SpotLight
. An alternative way to create shadows is explained
in the
Using a shadow map for fixed shadows
recipe in
Chapter 4
,
Materials
and Textures
.