benilla-re systems structs docs

InitTerrainDriftConstants

function · terrain · primitive

Address
0x68ebf0 · 959 bytes, up to 0x68efae
Signature
void __cdecl (void)
Meaning
Fills the drift atlas coordinate table with multiples of 51/256
Confidence
verified, proof one
Finding
terrain/waterfx#drift-draw
Test
terrain::fx_uv_table

Finding: Drift draw in terrain: water effects

0x68efe0 draws the motes as camera-facing quads in view space. A mote counts when its view-space position has z above 0 and |x|, |y| below z; it fills a vertex buffer of 2,664 vertices (666 quads) and stops when full. A quad is the mote's position plus the corner offsets (−0.5, 0.5), (−0.5, −0.5), (0.5, 0.5), (0.5, −0.5) times its size, in view space with identity matrices, colour 0xffffffff, and the texture cell of its index. The state is the cloud's texture on stage 0, blend 2, fog on for mode 2 only, depth write and lighting off.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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