EvalFadeRampInverse
function · lighting · primitive
- Address
0x67add0· 73 bytes, up to0x67ae18- Signature
float __thiscall (float *this, float v)- Meaning
- Evaluates one less a ramp clamped to [0, 1]
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#mist
- Test
lighting::weather_ramp_eval_inv_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 2
- Sand::DrawFixed lighting
- Mists::Render lighting
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.