DrawClouds
function · lighting · primitive
- Address
0x7e5f80· 363 bytes, up to0x7e60ea- Meaning
- Draws the cloud dome with the cloud texture
- Confidence
- verified, proof one
- Finding
- lighting/clouds#cloud-dome
- Test
lighting::d7_strip_color_repack_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
- DrawSky lighting
Callees 11
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBuildVertices gx
- SetDrawIndices gx
- GxPrimRenderOne gx
- 0x58b200 gx
- 0x58b220 gx
- GxXformSetIdentity gx
- 0x58b260 gx
Calls and jumps by a bare address, from tables/calls.tsv.