benilla-re systems structs docs

s_driftQuadCorners

global · terrain

Address
0xc800f4 · 48 bytes, up to 0xc80123
Type
float[12]
Meaning
Holds the four corner offsets of a drift quad, three floats each: (-0.5, 0.5, 0) first
Confidence
verified, proof one
Finding
terrain/waterfx#drift-draw

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.