All Projects → spite → shadow-mapping

spite / shadow-mapping

Licence: other
Shadow mapping in GLSL

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].