benilla-re systems structs docs

DrawInteriorGroupBatches

function · terrain · host

Address
0x6b5190 · 1539 bytes, up to 0x6b5792
Signature
void __thiscall (void *this, uint32_t arg2, uint32_t arg3)
Meaning
Draws an interior group's transparent, interior and exterior batches with their materials
Confidence
verified, proof one
Finding
terrain/groupdraw#interior-group-batches
Test
terrain::liquid_color_normalize_difftest

Finding: Interior group batches in terrain: map object draw

0x6b5190(group, again) draws all of an interior group's batches (+0x13c) in three kinds by position: the first +0x3c are transparent, the next +0x3e interior, the rest exterior. Transparent batches draw twice, lit with blend 9 and unlit with blend 7. Interior batches draw unlit with the material blend and a pixel program by shader. Exterior batches draw lit with the material blend and no program. The interior fog colours replace the scene's when the group fog flag is set, and a window material (flag 0x20) lights with the window colours.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 17

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