GetGlareCloudCover
function · lighting · primitive
- Address
0x6cf7b0· 26 bytes, up to0x6cf7c9- Meaning
- Returns one less the cloud cover at a glare's position
- Confidence
- verified, proof one
- Finding
- lighting/celestial#glare-occlusion
- Test
lighting::sf_skyblend_complement_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
- SampleCloudCover lighting
Calls and jumps by a bare address, from tables/calls.tsv.