benilla-re systems structs docs

LoadGlare

function · lighting · primitive

Address
0x7e5000 · 150 bytes, up to 0x7e5095
Meaning
Loads a glare's texture and creates its occlusion query when the device has one
Confidence
verified, proof one
Finding
lighting/celestial#body-objects

Finding: Body objects in lighting: sun, moons and stars

The sky initializer builds the bodies: the sun glare (0xce97a8), the moon glare (0xce96f8), the sun disc (0xce9858), the white moon (0xce9878), moon02 (0xce9898) and the stars (0xce96d8). A glare holds an enabled flag, its position, a colour, a base scale, its scale, a rise and a fall rate, an envelope, a texture, a 4-key visibility track, its scale ends, a look threshold, its alpha ends and a look factor. A disc holds its position, colour, texture, size and base scale.

glare fieldsun glaremoon glare
+0x20 base scale1.02.0
+0x28 rise, +0x2c fall per second4.0, 1.51515153.030303, 1.5151515
+0x70 visibility06:30 0, 07:30 1, 19:30 1, 21:00 002:00 1, 03:15 0, 22:45 0, 23:59 1
+0x90, +0x94 scale ends3.0, 20.0the white moon's size
+0x98 look threshold0.70.7
+0x9c, +0xa0 alpha ends0.5, 1.00.1, 1.0
textureTextures\sunGlare.blpTextures\moonGlare.blp

The derivation is in the doc.

Callers 2

Callees 6

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