benilla-re systems structs docs

RampWeather

function · lighting · primitive

Address
0x67bc70 · 276 bytes, up to 0x67bd83
Signature
void __thiscall (void *this, float from, float to)
Meaning
Moves the grade and the density along their ramps and passes them on
Confidence
verified, proof one
Finding
lighting/weather#weather-ramps
Test
lighting::weather_intensity_ramp_difftest

Finding: Weather ramps in lighting: weather

Each ramp is a clamped linear move over a time that scales with the distance: g = from + (to − from)·clamp(s/(|to − from + 0.001|·10), 0, 1), s the seconds since the ramp started, so a full move takes about 10 s. The effects receive x = max((g − 0.25)·4/3, 0), so no precipitation falls below a grade of 0.25. The density ramps the same way with the span |(to − from)·4 + 0.001|, so its 0.25 range also takes about 10 s; it goes to the light state's weather density and rebuilds the light table.

The derivation is in the doc.

Callers 1

Callees 7

Calls and jumps by a bare address, from tables/calls.tsv.