ScatterDriftCloud
function · terrain · primitive
- Address
0x68e720· 523 bytes, up to0x68e92a- Signature
void __thiscall (void *this, uint32_t mode)- Meaning
- Scatters the drift records in a cube of the box edge, sizes each s/2 + u·s at +0xc, and stores the mode
- Confidence
- verified, proof one
- Finding
- terrain/liquid#drift-cloud
- Test
terrain::weather_cloud_reseed_difftest,terrain::weather_toroidal_advect_difftest
Finding: Drift cloud in terrain: liquid
The world builds one drift cloud, the motes in liquid, at start-up: 4000 records of 16 bytes, a camera-relative position and, at +0xc, its quad size. The scatter
places every record uniformly in a cube of edge E around the camera, z, y and x from the first,
second and third draws of the client random generator (random), and sets the size to s/2 + u·s with u from a fourth
step of the same generator, s the size base. At creation E is 30 and s 1/36. The draw sizes each quad by +0xc; drift-cloud-scatters gives
when the cloud scatters again.
The derivation is in the doc.
Callers 3
- UpdateCameraEnvironment terrain
- CreateDriftCloud terrain
- AdvectDriftCloud terrain
Callees 1
- NTempest::CRandom::uint32 random
Calls and jumps by a bare address, from tables/calls.tsv.