benilla-re systems structs docs

s_weatherScale

global · lighting

Address
0x8680ec · 4 bytes, up to 0x8680ef
Type
float
Meaning
Holds the weather scale K, 0.66 until weatherDensity sets 0.1, 0.33, 0.66 or 1.0; written by 0x67b870
Confidence
verified, proof one
Finding
lighting/weather#weather-settings

Finding: Weather settings in lighting: weather

weatherDensity (0 to 3) picks the effect scale K: 0.1, 0.33, 0.66 or 1.0, and a change sets the manager's ramp-now byte so the effects take the new scale on the next frame. useWeatherShaders at 0 sends every effect to its fixed-function draw. The Internal option force weather type on, read at start-up, sets a type of 1 to 3 at grade 1.0 with no ramp and locks the weather: every later message and every reset is ignored.

The derivation is in the doc.