atmosphere: simulate Earth-Sun distance for solar irradiance

This commit is contained in:
Richard Zink committed 2026-10-12 15:06:13 +02:00
1 parent 185d9d2ff4
commit 629b1b6ab2
2 files changed
+15

No files matched your search

+1
View File
@@ -1891,6 +1891,7 @@ window.weatherThemes = {
var _sunNow = sceneNow();
var _sunPos = SunCalc.getPosition(_sunNow, SITE_LAT, SITE_LON);
window.__currentSunAlt = _sunPos.altitude;
window.__currentSceneDate = _sunNow;
window.__flightDow = _sunNow.getDay();
// Unit vector towards the sun in world space. SunCalc azimuth
// is measured from the south, positive towards the west, so the