benilla-re systems structs docs

DrawRiverPass

function · terrain · host

Address
0x6851b0 · 965 bytes, up to 0x685574
Signature
void __cdecl (void)
Meaning
Draws the river liquid slots: swatch, program or add combine, blend, lights and the river fill
Confidence
verified, proof one
Finding
terrain/liquidpass#liquid-draw-passes
Test
terrain::liquid_cam_relative_delta_difftest

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.

Callers 1

Callees 16

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