An open API service indexing awesome lists of open source software.

https://github.com/spite/shadow-mapping

Shadow mapping in GLSL
https://github.com/spite/shadow-mapping

Last synced: about 1 year ago
JSON representation

Shadow mapping in GLSL

Awesome Lists containing this project

README

          

Shadow mapping shader
=========

Demo: [Shadow mapping](http://www.clicktorelease.com/tmp/threejs/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