benilla-re systems structs docs

0xce8c34

global · lighting

Address
0xce8c34 · 4 bytes, up to 0xce8c37
Type
uint32_t
Meaning
Holds a dword that InitSky, GetGlareOcclusion, DrawGlare read and write; not read here
Confidence
inferred
Finding
lighting/celestial#glare-occlusion

Finding: Glare occlusion in lighting: sun, moons and stars

A glare's three occlusion terms are its method table's slots 2 to 4. Slot 3 samples the cloud cover at the glare: 1 − cover for the sun, 1 − |2·cover − 1| for the moon. Slot 4 is 1 dry and 1 − clamp(depth·0.1, 0, 1) underwater. Slot 2 returns 0 unless the glare is enabled and its alpha byte is nonzero; then it runs the device occlusion test when the glare has a query object and the occlusion setting is on, and the world trace otherwise.

The derivation is in the doc.