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.
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.