s_tuftHalfCell
global · terrain
- Address
0x810e84· 4 bytes, up to0x810e87- Type
float- Meaning
- Holds 2.0833333, half a cell; the tuft offset's scale
- 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.