CMapChunk::DrawLayers
function · terrain · host
- Address
0x6bef30· 1878 bytes, up to0x6bf685- Signature
void __thiscall (CMapChunk *this, void *batch)- Meaning
- Draws a chunk's texture layers: flat, in one pass or one pass a layer then the shadow
- Confidence
- verified, proof one
- Finding
- terrain/render#chunk-layer-draw
- Test
terrain::texgen_scale_recip_difftest,terrain::lod_gate_subtract_difftest,terrain::neg_fvar1_difftest,terrain::detail_texgen_scale_difftest,terrain::cam_relative_negate_difftest,terrain::texgen_apply_difftest
Finding: Chunk layer draw in terrain: render
0x6bef30(batch) draws a chunk's texture layers. A chunk with no layers, or whose view depth less its
radius has reached the fog end 0xc62964, is drawn flat. A layer with flag 0x80 forces the multipass
path. Otherwise, with the terrain shader flag 0xc9a31c the pixel program 0xc962cc[count] draws all the layers in
one pass, and with 0xc89f44 the program 0xc96088[count], each when it is available and the device
has at least count + 1 stages; any other chunk takes the multipass path.
The derivation is in the doc.
Callers 1
- CMapChunk::SelectMesh terrain
Callees 16
- GetTextureDeviceObject gx
- GxRsSetWord gx
- GxRsSetFloat gx
- GxRsSet gx
- GxRsSetObject gx
- GxDeviceCaps gx
- GxPrimRenderOne gx
- 0x58b210 gx
- 0x58b220 gx
- 0x58b250 gx
- GxShaderIsLoaded gx
- 0x58b4d0 gx
- CMapChunk::DrawLayersShader terrain
- CMapChunk::DrawFlat terrain
- TranslateMatrix cmath
- ScaleMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.