Shadow mapping in WebGL using an off-screen frame buffer
Here's a simple DEMO showcasing an implementation of WebGL shadows using an off screen frame buffer with bit shifted depth values.
Go ahead and give it a try: WebGL Shadows
git clone https://github.com/FarhadG/webgl-shadows.git
cd webgl-shadows
Open
or serve
up the index.html
file. All of the logic happens inside of main.js
.
MIT