Mists::Mists
function · lighting · primitive
- Address
0x67a5b0· 440 bytes, up to0x67a767- Meaning
- Builds a mist: puff size, box, texture, direction, spread, speed, speed spread and 128 puffs
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#mist
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
- Rain::Rain lighting
- Snow::Snow lighting
- Sand::Sand lighting
Callees 7
- SplatVector3 loadingscreen
- CStatus::~CStatus client
- TextureCreate gx
- CGxTexFlags::CGxTexFlags gx
- MistPuffNoop lighting
- 0x67d840 lighting
- 0x67d880 lighting
Calls and jumps by a bare address, from tables/calls.tsv.