sinisterchipmunk / jax

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

Light is not generating shadow maps until its matrix changes #88

Closed sinisterchipmunk closed 11 years ago

sinisterchipmunk commented 11 years ago

When a light is added to world and then objects are added, the objects do not cast a shadow until the light's camera is manipulated.

Workaround:

@light.camera.move 0

This triggers a "change" event within the light's camera and causes the shadow maps to be invalidated, without actually applying any change to the light's position or orientation.

sinisterchipmunk commented 11 years ago

I believe this issue has been resolved with the new Jax.Camera. Can reopen if the issue persists.