GetGlareOcclusion
function · lighting · orchestration
- Address
0x7e5780· 59 bytes, up to0x7e57ba- Meaning
- Returns a glare's occlusion from its query or trace, or 0 with occlusion off
- Confidence
- verified, proof one
- 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.
Callers 0
None by a direct call or jump.
Callees 2
- TraceGlareOcclusion lighting
- QueryGlareOcclusion lighting
Calls and jumps by a bare address, from tables/calls.tsv.