StampLightState
function · ui · primitive
- Address
0x482ad0· 316 bytes, up to0x482c0b- Meaning
- Writes the frame's clock, player, camera, far clip and weather density into the light state
- Confidence
- verified, proof one
- Finding
- lighting/daynight#light-state
- Test
ui::textglue_482_normalize3,ui::textglue_482_sq_len3_482200,ui::textglue_482_tick_scale
Finding: Light state in lighting: day-night
The light state holds the clock, the camera, the weather and the outputs. These are the fields
other systems write or the table build reads; offsets are from 0xce9b60.
| offset | holds | written by |
|---|---|---|
+0x00, +0x04, +0x08 | game clock word, time of day in [0, 1), day count as a float | the world frame |
+0x0c | active player's position | the world frame |
+0x18, +0x24 | camera eye, unit camera forward | the world frame |
+0x30 | camera heading, radians in [0, 2π) | 0x6d4530 |
+0x34, +0x38, +0x3c | far clip, clock in seconds, frame time | the world frame |
+0x40 | weather density | the world frame, the weather |
+0x44, +0x45 | screen tint level byte, tint colour | 0x6d45c0 |
+0x4c, +0x50 | override LightParams record, override light reference | 0x6d4620, 0x6d4630 |
+0x6c | storm weight | 0x6d4500 |
+0xac | the light table, 0x90 bytes | 0x6d2260 |
The derivation is in the doc.
Callers 1
Callees 7
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- WowTime::GetDayNumber unassigned
- WowTime::GetMinuteOfDay unassigned
- GameTimeGetDayPhase gametime
- GetLightState lighting
Calls and jumps by a bare address, from tables/calls.tsv.