LoadGlare
function · lighting · primitive
- Address
0x7e5000· 150 bytes, up to0x7e5095- 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 field | sun glare | moon glare |
|---|---|---|
+0x20 base scale | 1.0 | 2.0 |
+0x28 rise, +0x2c fall per second | 4.0, 1.5151515 | 3.030303, 1.5151515 |
+0x70 visibility | 06:30 0, 07:30 1, 19:30 1, 21:00 0 | 02:00 1, 03:15 0, 22:45 0, 23:59 1 |
+0x90, +0x94 scale ends | 3.0, 20.0 | the white moon's size |
+0x98 look threshold | 0.7 | 0.7 |
+0x9c, +0xa0 alpha ends | 0.5, 1.0 | 0.1, 1.0 |
| texture | Textures\sunGlare.blp | Textures\moonGlare.blp |
The derivation is in the doc.
Callers 2
- BuildSunGlare lighting
- BuildMoonGlare lighting
Callees 6
- CStatus::~CStatus client
- TextureCreate gx
- SysMsgAdd sysmsg
- GxDeviceCaps gx
- CGxTexFlags::CGxTexFlags gx
- 0x58ae60 gx
Calls and jumps by a bare address, from tables/calls.tsv.