weather: add lightning flashes during storms

This commit is contained in:
Richard Zink committed 2026-10-12 22:46:48 +02:00
1 parent e3ce9119fe
commit fb113e2e2d
2 files changed
+61

No files matched your search

+8
View File
@@ -136,9 +136,17 @@ window.CONFIG = {
intensity: 1.0,
maxAlpha: 0.45,
speed: 0.35 // slow drifting flakes
},
lightning: {
enabled: true,
gain: 1.2, // brightness of one flash
minDelayS: 8, // minimum delay between storm flashes
maxDelayS: 45, // maximum delay between storm flashes
doubleFlash: true // some flashes flicker twice
}
// weatherEffects: { enabled: false }
// weatherEffects: { rain: { maxAlpha: 0.55, speed: 1.4 }, snow: { enabled: false } }
// weatherEffects: { lightning: { gain: 2.0, minDelayS: 3, maxDelayS: 12 } }
},
// ------------------------------------------------------------------