sinisterchipmunk / jax

Framework for creating rich WebGL-enabled applications using JavaScript and Ruby
http://jaxgl.com
MIT License
96 stars 16 forks source link

Render errors when shadows are disabled, but shadowmapping is not #46

Closed sinisterchipmunk closed 12 years ago

sinisterchipmunk commented 12 years ago

Shadow casting can be disabled per-light source by setting the light source's shadow_caster property to false. However, any model which explicitly includes a ShadowMap layer will cause a fatal render error, because it is trying to use the light's shadow matrix but the shadow matrix for that light was never created.