An implementation of shadow volumes in three.js (v104) using depth fail
Live Demo : https://raw.githack.com/dyarosla/shadowVolumeThreeJS/master/index.html
Open index.html
Note: This sample focuses on rendering the stenciled shadow and not on generating the shadow volume itself. To generate a shadow volume for a mesh, you can refer to the implementation for ShadowVolume in three.js (r40) here: https://github.com/mrdoob/three.js/blob/7593b8d58a5980f8dd5e0a098aaca59b6db10555/src/objects/ShadowVolume.js