Three.js Shadow Demo
A demostration of support for shadows in three.js.
Shadows require a lot of configuration and tuning to get right, and they are still not perfect. For example, a spotlight generates shadows outside its cone of illumination, and the shadow doesn't seem to take the color of the light into account. However, the demo shows that resonable looking shadows are possible.
The "Animate" checkbox makes the lights move and one of the objects rotate in place, so you can see how the shadows depend on the light positions as well as the objects.
The scene can be rotated using the mouse.