benilla-re systems structs docs

SetFadeRamp

function · lighting · primitive

Address
0x67ad60 · 37 bytes, up to 0x67ad84
Signature
void __thiscall (float *this, float a, float b)
Meaning
Sets a ramp to (b − v)/(b − a)
Confidence
verified, proof one
Finding
lighting/precipitation#mist
Test
lighting::weather_ramp_setup_difftest

Finding: Mist in lighting: precipitation

Each effect's mist is 128 puffs, each a camera-facing quad of size 12 in the scene's fog colour. A rate accumulator gains rate·frame seconds, capped at 128; a free puff spawns while it holds 1, born at a random point of the frame. A puff moves at (u − 0.5)·spread + speed along (u − 0.5)·0.349 − 1.57 turned by the heading: speed 5.0, 9.0 or 15.0 and spread 1.2, 3.0 or 4.5 for rain, snow and sand. It lives (u − 0.5)·0.3 + 2.7 s, fading in over its first 0.4 s and out over its last 0.4 s, and is invisible within 6 yards of the camera, full beyond 18.

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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