UpdateCameraHeading
function · lighting · primitive
- Address
0x6d4530· 142 bytes, up to0x6d45bd- Meaning
- Sets the camera heading in [0, 2π) from the forward vector
- Confidence
- verified, proof one
- Finding
- lighting/daynight#recompute
- Test
lighting::wind_angle_update_difftest
Finding: Recompute in lighting: day-night
The table is rebuilt every frame by the world's sky update. 0x6d2210 clears the interior fog
blend, then runs the storm weight, the table, the sun direction and the celestial bodies, and
rebuilds the cloud texture whole when its flag is set, else one band of it. The per-frame path
first sets the camera heading.
The derivation is in the doc.
Callers 1
- CWorld::UpdateSkyAndFog terrain
Callees 6
- UpdateCloudTexture lighting
- UpdateStars lighting
- BuildLightTable lighting
- UpdateSunDirection lighting
- UpdateCelestialBodies lighting
- UpdateStormWeight lighting
Calls and jumps by a bare address, from tables/calls.tsv.