shadow-mapping

Shadow mapping in GLSL

Stars
17

Shadow mapping shader

Demo: Shadow mapping

Implementation of shadow mapping in GLSL for three.js

  • Fixed directional light (fixed ambient and light colour)
  • Averaged and poison-disk sampling averaged
  • Projector

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!

License

MIT