s_cloudTextureShifts
global · lighting
- Address
0x81155c· 8 bytes, up to0x811563- Type
const uint32_t[2]- Meaning
- Holds the cloud texture row shifts 7 and 8 by SkyCloudLOD
- Confidence
- verified, proof one
- Finding
- lighting/clouds#cloud-texture
Finding: Cloud texture in lighting: clouds
The texture is a square of cols × cols texels, cols = 128 at SkyCloudLOD 0 and 256 at 1 (the
setting clamped to [0, 1], default 0), with a row shift of 7 or 8. Every 0.1 s of frame time the
cloud update builds the next 32 rows: noise cover, then colour, then a device update of that band;
past the last row it wraps to row 0 and advances the noise phase. A full rebuild regenerates every
row at once. The texture starts white and opaque.
The derivation is in the doc.