benilla-re systems structs docs

s_stagePresets

global · terrain

Address
0x85c250 · 264 bytes, up to 0x85c357
Type
uint32_t[66]
Meaning
Holds the six texture stage combine presets of 0x2c bytes
Confidence
verified, proof one
Finding
terrain/watershade#stage-combine-presets

Finding: Stage combine presets in terrain: water shading

State id 0x1f plus a stage index selects one of six texture environment presets; the passes use preset 3, add, for the water sheet. The preset table is six records of 0x2c bytes at 0x85c250. When the card lacks the combine extension the OpenGL arm sets only the fallback mode in the first dword, and the alpha of an add then is the product of the two alphas; with it the arm uploads the whole record and the alpha of preset 3 is the sum.

The derivation is in the doc.