benilla-re systems structs docs

s_driftAtlasUv

global · terrain

Address
0xc81b98 · 416 bytes, up to 0xc81d37
Type
float[104]
Meaning
Holds 26 rows of four texture coordinates, two rows to a drift cell
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.