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
- Host: GitHub
- URL: https://github.com/spite/shadow-mapping
- Owner: spite
- Created: 2014-10-07T17:26:24.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-07T17:38:35.000Z (over 11 years ago)
- Last Synced: 2025-05-06T14:19:02.935Z (about 1 year ago)
- Language: JavaScript
- Size: 1.11 MB
- Stars: 18
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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