mrdoob/three.js — pull request #4261 by bhouston (2014-01-03 17:28:52+00:00)
Title: Light get world direction

Addresses the duplicate code in the renderers for figuring out the direction of the SpotLight and DirectionalLight by moving it into a function in the Light classes.

In response to @WestLangley's comments I have made a shared but unusable static function on Light that is then attached in a usable way to the prototypes of SpotLight and DirectionalLight. I did this to avoid writing the same code twice.

Fixes #4258.