This is one of the most common shadow map artifacts called Peter Panning.
The workaround is to add a small offset to test the depth:
light.shadowBias = 0.001;
The exact amount of displacement must be adjusted for each scene (and, unfortunately, sometimes you canβt get rid of all artifacts everywhere, setting up shadow maps is more art than science).
This is what works for your example:
http://jsfiddle.net/pD8dn/2/
source share