benilla-re systems structs docs

BuildCloudDome

function · lighting · primitive

Address
0x6d0530 · 858 bytes, up to 0x6d0889
Signature
void __thiscall (void *this, float radius)
Meaning
Builds the cloud dome's vertices, texture coordinates, ring alphas and indices
Confidence
verified, proof one
Finding
lighting/clouds#cloud-dome
Test
lighting::dn_sun_trig_table_difftest

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.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.