benilla-re systems structs docs

SetPortalCullCallbacks

function · terrain · orchestration

Address
0x6b3880 · 13 bytes, up to 0x6b388c
Signature
void __fastcall (void *a, void *b)
Meaning
Stores the function and the map object the portal flood's group callback is given
Confidence
verified, proof one
Finding
terrain/portals#camera-inside-a-map-object

Finding: Camera inside a map object in terrain: map object visibility

0x685a90 prepares the flood for the map object that holds the camera. It moves the camera position and the camera target into the model's space with the instance matrix +0xd4, stores the unit direction between them and the offset of the plane through the camera (the plane of the view axis), loads matrix slot 8 with the translation by minus the camera times the instance matrix +0x94, registers the group callback 0x685d70, and runs 0x6b3b20 with the model, the instance matrix and the groups the camera is in.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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