feat: wait for terrain before drawing clouds

This commit is contained in:
Richard Zink committed 2026-10-13 14:21:22 +02:00
1 parent 2afc0b2545
commit 8cca47f86e
2 files changed
+12 -4

No files matched your search

+4
View File
@@ -335,6 +335,10 @@ window.CONFIG = {
start: 0.35, // world units: clouds fade out very close to camera
end: 2.5 // full density from this distance onward
},
// Delay the volumetric cloud pass until the DEM/terrain mesh is
// ready. This avoids clouds appearing over an unfinished ground model.
waitForTerrain: true, // false = draw clouds immediately
// waitForTerrain: false
// Coverage per weather level, 0 = clear, 1 = overcast. Only the
// levels listed here override the built-in defaults
// (sunny 0.20, cloudy 0.70, stormy 0.80, night 0.45). Live weather