peterqliu / threebox

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.
MIT License
526 stars 320 forks source link

Create option to set simulate lighting based on date/time/lat/lng #4

Open kronick opened 7 years ago

kronick commented 7 years ago

Given a specific date/time and the center position of the map, we should be able to create a lighting setup that simulates the sun's path using a DirectionalLight

This will only be realistic at high zoom levels since the map is not a sphere