benilla-re systems structs docs

BuildLightRecord

function · lighting · orchestration

Address
0x6d64d0 · 746 bytes, up to 0x6d67b9
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.

offsetvalueoffsetvalue
+0x00 to +0x1ccolour bands 0 to 7+0x50LightParams column 1, int to float
+0x20 to +0x40colour bands 9 to 17+0x54 to +0x60scalar bands 2 to 5
+0x44, +0x48scalar bands 0 and 1+0x64 to +0x74LightParams columns 4 to 8
+0x4ccolour band 8+0x78, +0x7cLightParams column 2, 1.0
+0x88, +0x8cLightParams column 3, 1.0

The derivation is in the doc.

Callers 3

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.