s_cloudGlowScale
global · lighting
- Address
0x811608· 4 bytes, up to0x81160b- Type
const float- Meaning
- Holds 192.0, the storm scale of the cloud light's height
- Confidence
- verified, proof one
- Finding
- lighting/clouds#cloud-colours
Finding: Cloud colours in lighting: clouds
Each texel with cover a > 0 gets alpha a and colour base + glow, each channel clamped to 1 and
packed as bits(f32(c·255 + 512)) >> 14. base = band 10·p + band 11 with p = (((255 − a) >> 1) +
64)/255. glow = band 9·k when the angle term k is positive: k = cos θ · (1 − 0.75·w) · E(time),
θ between (s − texel, 192·w + 64) and (slope, 1), s the light's texel position, w the storm weight
and E the track at 0xce9ab8. The light is the sun disc from 04:50 to 22:10, else the white
moon. A texel with no cover copies the previous texel's colour with alpha 0.
The derivation is in the doc.