Shadow mapping in GLSL
Demo: Shadow mapping
Implementation of shadow mapping in GLSL for three.js
This is done with the purpose of exploring the different shadow-mapping techniques, and having a more-or-less correct solution to use when creating my own shaders. In three.js right now it's not immediate to mix custom shaders and default material features.
This is very important! All the geometry has to be merged for this to work. I still have to figure out how to work with each individual mesh's modelMatrix. Don't use this code for anything else than playing around!
MIT