RecomputeLighting
function · lighting · orchestration
- Address
0x6d2210· 65 bytes, up to0x6d2250- Meaning
- Rebuilds the light table, the sun and the bodies, and the clouds
- Confidence
- verified, proof one
- Finding
- lighting/daynight#recompute
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 4
- CWorld::UpdateSkyAndFog terrain
- RampWeather lighting
- UpdateCameraEnvironment terrain
- SetOverrideLightRecord lighting
Callees 6
- RebuildCloudTexture lighting
- UpdateCloudTexture lighting
- BuildLightTable lighting
- UpdateSunDirection lighting
- UpdateCelestialBodies lighting
- UpdateStormWeight lighting
Calls and jumps by a bare address, from tables/calls.tsv.