antarktikali / threejs-sunlight

A Three.js module that uses a directional light to imitate the sun light in a real world location
14 stars 9 forks source link

About

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.

Usage

TODO Use the source Luke!

Licensing

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.