s_cameraDefaultFov
global · unassigned
- Address
0x8089b4· 4 bytes, up to0x8089b7- Type
const float- Meaning
- Holds pi/2 as a float, the field of view the camera is built with
- Confidence
- verified, proof one
- Finding
- uicamera/view#the-camera-base
Finding: The camera base in uicamera: the camera's saved view
The camera's constructor first builds its base: zeroes at +0x4 to +0x10, an identity 3×3
matrix at +0x14 to +0x34, the near clip at +0x38, the far clip at +0x3c, the field of view
at +0x40, 1.0 at +0x44 and the vtable 0x808904, then rebuilds the matrix from yaw, pitch and
roll 0. The near clip is the nearclip value and the far clip the farclip value at that moment,
and the field of view is π/2. A second form with the constants 1/9, 277.77777 and π/2 builds the
same base, but nothing reaches it.
The derivation is in the doc.