BuildSkyDome
function · lighting · primitive
- Address
0x6d0d10· 569 bytes, up to0x6d0f48- Signature
void __thiscall (void *this, float radius)- Meaning
- Builds the sky dome's vertices and index strip at a radius
- Confidence
- verified, proof one
- Finding
- lighting/sky#sky-dome
- Test
lighting::sky_band_orient_setup_difftest
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.
Callers 1
- InitSky lighting
Callees 3
- SetArrayCapacity503d10 ui
- 0x596ff0 gx
- 0x5971e0 gx
Calls and jumps by a bare address, from tables/calls.tsv.