s_oneTwentyEight
global · unassigned
- Address
0x80653c· 4 bytes, up to0x80653f- Type
const float- Meaning
- Holds 128.0
- 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.