mrdoob/three.js — pull request #2372 by tapio (2012-08-31 16:08:01+00:00)
Title: Fixed light mapping.

Hello,
I tried using the lightMap parameter in phong material, but it resulted in OpenGL error. I dug into three.js and noticed it was trying to assign a non-existing variable to the light map coordinates. I fixed that (second chunk in the diff).

Then I noticed the light map wasn't really working as expected, i.e. the textures were black aside from the emissive parts. I fixed that too (first chunk of the diff).