CullSceneChunks
function · terrain · orchestration
- Address
0x683bf0· 471 bytes, up to0x683dc6- Signature
void __thiscall (void *this)- Meaning
- Drops culled or hidden chunks, adds occluders to the horizon and fills the chunk draw list
- Confidence
- verified, proof one
- Finding
- terrain/cull#chunk-visibility
Finding: Chunk visibility in terrain: cull
0x683bf0 walks the frame's candidate chunks: a chunk whose holes word is 0xffff, whose box fails
the frustum, or which the horizon hides, is dropped. With world flag 0x20, a visible chunk
without holes becomes an occluder candidate; the candidates whose view depth lies in
[0xc7b66c, 0xc7d278) add their rows to the horizon, and all join the draw list. Without the
flag every visible chunk joins the draw list directly.
The derivation is in the doc.
Callers 1
- WalkScene terrain
Callees 6
- IsBoxCulled terrain
- TestHorizonBox terrain
- UnlinkLinkE terrain
- LinkNodeB terrain
- NextLinkG terrain
- CMapChunk::AddHorizonRows terrain
Calls and jumps by a bare address, from tables/calls.tsv.