supereggbert / GLGE

A javascript webGL graphics library
http://glge.org
Other
394 stars 84 forks source link

light color fixes #69

Closed krojew closed 12 years ago

krojew commented 12 years ago

Fix for dynamic light color setting. Previously light color was cached after setting the color uniform in material, but instead of copying the color values, the color object reference was stored. Because of this any change to the color after the uniform was initially set, was ignored. Also color part getters were add to allow light color animation. Sorry about the strange diff, my editor chose to trim trailing whitespace form some lines. The relevant change is in material.js:1230.

supereggbert commented 12 years ago

nice one again, thanks!