BuildLightRecord
function · lighting · orchestration
- Address
0x6d64d0· 746 bytes, up to0x6d67b9- Meaning
- Fills a light record from a LightParams record at half-minute h
- Confidence
- verified, proof one
- Finding
- lighting/daynight#light-record
Finding: Light record in lighting: day-night
0x6d64d0 fills a 0x90-byte light record from a LightParams record at half-minute h: the 18 colour
bands and 6 scalar bands at h, and the record's own columns. Every slot below is written on every
call; +0x80 and +0x84 are not written. The table at 0xce9c0c is such a record.
| offset | value | offset | value |
|---|---|---|---|
+0x00 to +0x1c | colour bands 0 to 7 | +0x50 | LightParams column 1, int to float |
+0x20 to +0x40 | colour bands 9 to 17 | +0x54 to +0x60 | scalar bands 2 to 5 |
+0x44, +0x48 | scalar bands 0 and 1 | +0x64 to +0x74 | LightParams columns 4 to 8 |
+0x4c | colour band 8 | +0x78, +0x7c | LightParams column 2, 1.0 |
+0x88, +0x8c | LightParams column 3, 1.0 |
The derivation is in the doc.
Callers 3
- BuildLightTable lighting
- BlendAreaLights lighting
- GetLightAtPoint lighting
Callees 4
- EvalLightIntBand lighting
- EvalLightFloatBand lighting
- GetLightIntBand lighting
- GetLightFloatBand lighting
Calls and jumps by a bare address, from tables/calls.tsv.