benilla-re systems structs docs

Rain::SetIntensity

function · lighting · primitive

Address
0x6749e0 · 139 bytes, up to 0x674a6a
Signature
void __thiscall (Rain *this, float x)
Meaning
Sets the rain's drop rate K·P·x, its packet fill limit P/6144 and its mist rate
Confidence
verified, proof one
Finding
lighting/precipitation#rain-rates
Test
lighting::rain_density_param_set_difftest

Finding: Rain rates in lighting: precipitation

With x the grade the effect receives, rain emits K·P·x drops a second, P = 35000 with shaders and 6500 without, K the density setting, and closes a packet at a fill time of f32(P·(1/6144)) seconds, about 5.70 s or 1.06 s. Its mist emits 2·max(x − 0.5, 0)·K·Q puffs a second, Q = 38 with shaders and 18 without, so the mist starts only above x = 0.5.

The derivation is in the doc.

Callers 2

Callees 1

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