s_cloudCoverCurve
global · lighting
- Address
0xce91d8· 256 bytes, up to0xce92d7- Type
uint8_t[256]- Meaning
- Holds the cloud cover curve built at start-up
- Confidence
- verified, proof one
- Finding
- lighting/clouds#cloud-cover
Finding: Cloud cover in lighting: clouds
Each texel's cover byte is curve[b − T], or 0 when b < T, with b the low byte of
bits(f32(n·64 + 128 + 512)) >> 14 for the noise value n and T = trunc((1 − C)·255) for the cover
C, scalar band 3 (table +0x58). The curve is built once at start-up from T = 102:
curve[i] = trunc(255 − 255·0.96^(i·d)), d = (255 − 102)/256 accumulated as a float.
The derivation is in the doc.