s_clouds
global · lighting
- Address
0xce98e8· 184 bytes, up to0xce999f- Type
uint8_t[184]- Meaning
- Holds the cloud object: threshold, override, octaves, texture and buffers
- 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.