DrawFarBand
function · terrain · orchestration
- Address
0x6841a0· 873 bytes, up to0x684508- Signature
void __cdecl (void)- Meaning
- Draws the queued low-detail tiles under a projection reaching the horizon far clip and a depth range of 0.955 to 0.96
- Confidence
- verified, proof one
- Finding
- terrain/lod#low-detail-pass
- Test
terrain::far_fsub1_difftest,terrain::far_fsub2_difftest,terrain::far_pass_negate_difftest
Finding: Low-detail pass in terrain: lod
0x6841a0 draws the far band: the linked tiles, with a projection and depth range of their own. It takes the
perspective matrix of the camera's field of view and aspect with near the far clip less 33.0 and far 0xc7b49c,
sets the depth range to 0.955 to 0.96 (0x80febc and 0x80fec4), translates matrix 8 by the negated camera, and
for each tile unlinks it and, with world flag 0x4000000, draws it with 0x6bd780. It then restores the
viewport and the projection.
The derivation is in the doc.
Callers 1
- DrawWorldScene terrain
Callees 12
- SetVector3 spline
- GetActiveCamera ui
- SetDeviceViewport gx
- SetDeviceProjection gx
- GetDeviceViewport gx
- GetDeviceProjection gx
- 0x58b210 gx
- 0x58b220 gx
- BuildPerspectiveMatrix gxumath
- NextLinkH terrain
- CMapAreaLow::Draw terrain
- TranslateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.