benilla-re systems structs docs

DrawDriftCloud

function · terrain · host

Address
0x68efe0 · 1026 bytes, up to 0x68f3e1
Signature
void __thiscall (void *this)
Meaning
Draws the visible motes as camera-facing quads of one texture cell each
Confidence
verified, proof one
Finding
terrain/waterfx#drift-draw
Test
terrain::billboard_dot_difftest, terrain::cone_negate_difftest, terrain::quad_corner_difftest

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 2

Callees 13

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