DrawChunkPass
function · terrain · orchestration
- Address
0x684510· 810 bytes, up to0x684839- Signature
void __cdecl (void)- Meaning
- Draws the chunk draw list with each chunk's transform and lights
- Confidence
- verified, proof one
- Finding
- terrain/render#chunk-draw-pass
- Test
terrain::chunk_cam_relative_delta_difftest
Finding: Chunk draw pass in terrain: render
0x684510 draws the frame's chunk list 0xc7cad8 in order. For each chunk it sets the transform to the chunk
position less the camera, picks the lights of the chunk as a whole, draws the mesh through 0x6beb50 and
resets the chunk's idle time. Lights are chosen once per chunk, at the centre of its box, with its bounding
radius as the search radius; nothing below the chunk looks at a light again.
The derivation is in the doc.
Callers 1
- DrawWorldScene terrain
Callees 17
- SplatVector3 loadingscreen
- SetVector3 spline
- 0x4b1df0 ui
- GxRsSetFloat gx
- GxRsPush gx
- GxRsPop gx
- GxXformSetTexture gx
- SetPlane gx
- NextLinkG terrain
- ClearSceneState terrain
- CMapChunk::SelectMesh terrain
- CMapChunk::CreateDetailDoodads terrain
- DrawMapEntity terrain
- M2SceneAddLightsForPoint models
- M2LightingInitialize models
- M2LightingSetDeviceLights models
- TranslateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.