You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use the globe with OSM https://globe.gl/example/tile-engine/
The ambient light is incorrect here as the sun never gets in zenith over the North Pole ;)
I try to override this light in three.js with something resonable like the light/sun at coordinates lon 0 lat 10, but I can't fix it. Would you like to change lights in this nice globe?
The text was updated successfully, but these errors were encountered:
@zmalol-geo the ambient light does not have a direction it affects everything the same. It's the directional light that has an angle of incidence, but that's not the intent of that light to mimic the position of the sun. For that purpose it would actually need to rotate around depending on the time of day.
In any case, you can modify the angle of this directionall light easily via the .lights() accessor. So, something like this:
myGlobe.lights()[1].position.set(0,0,1)
This will set it directly above the (0, 0) coordinates (prime meridian crossing the equator).
I try to use the globe with OSM https://globe.gl/example/tile-engine/
The ambient light is incorrect here as the sun never gets in zenith over the North Pole ;)
I try to override this light in three.js with something resonable like the light/sun at coordinates lon 0 lat 10, but I can't fix it. Would you like to change lights in this nice globe?
The text was updated successfully, but these errors were encountered: