benilla-re systems structs docs

s_oneEleventh

global · lighting

Address
0x81160c · 4 bytes, up to 0x81160f
Type
const float
Meaning
Holds 1/11, the cloud dome's ring texture step
Confidence
verified, proof one
Finding
lighting/clouds#cloud-dome

Finding: Cloud dome in lighting: clouds

The clouds draw on a dome of one apex and eleven rings of 16 columns at polar angles 0, 0.025π, 0.05π, … 0.205π, 0.23π, 0.245π, 0.25π, built at radius 1.0 and dropped by cos 45° like the gradient. Ring k's texture coordinate is (sin φ, cos φ)·k/22 + 0.5 and its colour white with alpha 255 for rings 0 to 8, 128 for ring 9 and 0 for rings 10 and 11. The draw uses the texture, blend 2 and render states 0xe, 0xf, 0x12 and 0x14 at 0; it skips a cloud object without a texture.

The derivation is in the doc.