s_cameraPosition
global · terrain
- Address
0xc7cf20· 12 bytes, up to0xc7cf2b- Type
float[3]- Meaning
- Holds the camera position the terrain, liquid, group and doodad passes subtract
- Confidence
- verified, proof one
- Finding
- terrain/cull#camera-origin
Finding: Camera origin in terrain: cull
The terrain, liquid, group and doodad passes subtract one stored camera position. 0x680bc0 copies the
three dwords at its first argument to 0xc7cf20, 0xc7cf24 and 0xc7cf28; no other instruction stores to
them directly but a zero at start-up. The world frame copies the camera's +0x8 triple verbatim to a local and
passes it through 0x66fd50, so these globals equal the position the model scene is rebased on.
The derivation is in the doc.