benilla-re systems structs docs

GetGlareCoverEdge

function · lighting · primitive

Address
0x6cf7d0 · 36 bytes, up to 0x6cf7f3
Meaning
Returns one less twice the cloud cover's distance from 0.5 at a glare
Confidence
verified, proof one
Finding
lighting/celestial#glare-occlusion
Test
lighting::sf_skyblend_triangle_difftest

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 1

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