FillCombinedTexture
function · terrain · orchestration
- Address
0x6b11b0· 44 bytes, up to0x6b11db- Signature
void __fastcall (uint32_t request, uint32_t width, uint32_t, uint32_t, CMapChunk *chunk, uint32_t *pitch, void **data, uint32_t arg8)- Meaning
- Fills a chunk's combined texture on request 1
- Confidence
- verified, proof one
- Finding
- terrain/chunk#combined-chunk-texture
Finding: Combined chunk texture in terrain: chunk
With either shader flag set, a chunk gets one texture (+0x13c) that packs its shadow and the alpha maps of layers 1 to 3: texel = s << 12 | a1 << 8 | a2 << 4 | a3, each a 4-bit value. A layer without an alpha map, or a missing layer, gives 0xf; the shadow is 0xf for a clear bit or no map and 0 for a set bit. The size and the sample walks follow the alpha maps.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- CMapChunk::DecodeCombined terrain
Calls and jumps by a bare address, from tables/calls.tsv.