Mists::PlacePuff
function · lighting · primitive
- Address
0x67a990· 950 bytes, up to0x67ad45- Signature
void __thiscall (Mists *this, void *puff, uint32_t birth)- Meaning
- Places a puff: its velocity turned by the heading, its position, spin and life
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#mist
- Test
lighting::mist_spawn_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 0
None by a direct call or jump.
Callees 7
- _atexit crt
- NTempest::CRandom::uint32 random
- SetVector3 spline
- SecondsToWeatherTicks lighting
- GetWeatherGrid lighting
- TransformPoint34Rows cmath
- RotateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.