This module is intended to be used as a smart directional light object in a three.js scene. You can specify the geographical orientation of your scene, and the directional light would adjust itself according to the time and place on earth to reflect the real world direction of the sun light.
TODO Use the source Luke!
The code for solar orientation calculation is based on the code of the Solar Calculator developed at the National Oceanic & Atmospheric Administration of the U.S. Department of Commerce, and is public domain.
The three.js JavaScript 3D library is released under the MIT license. Please see the official repository of three.js for more details.