s_twoPow20Inverse
global · unassigned
- Address
0x8026bc· 4 bytes, up to0x8026bf- Type
const float- Meaning
- Holds 2^-20
- Confidence
- verified, proof one
- Finding
- lighting/sky#sky-dome
Finding: Sky dome in lighting: sky
The dome is a cap of one apex vertex and five rings of 24 columns, built once at radius 1.0. Ring k lies at polar angle θk = 0, 0.17π, 0.20π, 0.23π, 0.24π, 0.25π from the zenith, column c at φ = 2π·c/24, and a vertex is (sin φ·sin θ·r, cos φ·sin θ·r, cos θ·r − cos 0.25π), so the rim sits at the eye's height. The apex ring stops after one column. The index strip pairs, for each ring after the apex and c = 0 to 24, the previous ring's column c mod 24 with this ring's, the apex always 0: 250 indices, with the vertex count 121 and the index count 300 stored for the draw.
The derivation is in the doc.