s_liquidLayerLists
global · terrain
- Address
0xc7cb14· 36 bytes, up to0xc7cb37- Type
uint32_t[9]- Meaning
- Holds the draw lists of liquid layers 0, 1 and 2, each a link offset, a tail and a head
- Confidence
- verified, proof one
- Finding
- terrain/liquidpass#liquid-draw-passes
Finding: Liquid draw passes in terrain: liquid passes
The scene draws the terrain liquids in three passes over the slots of a layer's list: the ocean
0x685010 (type 1), the river 0x6851b0 (type 0) and the magma 0x6855a0 (type 2). Each returns at once
for an empty list, pushes the device state, turns face culling off and pops at the end. Ocean and
river bind their swatch on stage 0. With the fancy-water byte set they bind the pixel program, set the
specular material white, the shininess 6.0, blend 2 (source alpha, one minus source alpha) and
depth write off; otherwise no program and stage 1 combine preset 3 (add). The magma turns
lighting and blending off and binds nothing.
The derivation is in the doc.