IsInChunkShadow
function · terrain · primitive
- Address
0x69b350· 322 bytes, up to0x69b491- Signature
uint8_t __thiscall (void *this)- Meaning
- Returns whether the shadow map bit under a point is set
- Confidence
- verified, proof one
- Finding
- terrain/queries#shadow-test
- Test
terrain::tile_index_conversion_difftest
Finding: Shadow test in terrain: queries
0x69b350(point) returns whether the chunk's shadow map has a set bit under the point: the bit
at row round(1.92·(17066.666 − x) − 0.5) & 63 and column the same from y, the products stored.
It returns 0 outside [0, 34133.332) on either axis and where no chunk is loaded. It reads the
MCNK shadow pointer whether or not the chunk has a shadow map.
The derivation is in the doc.
Callers 3
- CWorld::IsInShadow terrain
- DrainPendingDoodads terrain
- UpdateMapEntityEnvironment terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.