Skip to content

A Three.js module that uses a directional light to imitate the sun light in a real world location

Notifications You must be signed in to change notification settings

antarktikali/threejs-sunlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Three.js module that uses a directional light to imitate the sun light in a real world location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published