evanw / lightgl.js

A lightweight WebGL library
MIT License
1.52k stars 146 forks source link

How to get Shadow Maps with Static Colors #21

Open ghost opened 8 years ago

ghost commented 8 years ago

My primary goal is to create an isometric scene using lightgl.js with lighting and shadows. I've been trying to use the shadowmap.html example as a starting point. However, I'm not quite sure how to get CSG.setColor to be drawn accurately. Any ideas on how I can set solid colors without all of the current variance? Are there any more basic examples or more basic shaders I can use?