s_shadowTexelsPerYard
global · terrain
- Address
0x810744· 4 bytes, up to0x810747- Type
float- Meaning
- Holds 1.92 (0x3ff5c28f), shadow map texels per yard
- Confidence
- verified, proof one
- Finding
- terrain/queries#shadow-test
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.