benilla-re systems structs docs

s_shadowTexelsPerYardTuft

global · terrain

Address
0x810e80 · 4 bytes, up to 0x810e83
Type
float
Meaning
Holds 1.92, shadow map texels per yard for the tuft shadow test
Confidence
verified, proof one
Finding
terrain/detail#detail-doodad-tuft

Finding: Detail doodad tuft in terrain: detail doodads

Tuft j of pick i draws two values v₁, v₂ (2 − f or f − 2 for f in [1, 2), by the draw's sign) and takes the doodad row[+4 + 4 × ((j + i) & 3)]; −1 places nothing. In the cell x = v₁ × 2.0833333 + 2.0833333, y likewise. The ground plane is the cell's quadrant of (x, y); the chunk-relative position is (−(y + 4.1666665 row), −(x + 4.1666665 col), z from the plane). Scale is v₃ × 0.1 + 1, yaw v₄ × π, drawn only for a placed tuft.

The derivation is in the doc.