CreateCloudTexture
function · lighting · primitive
- Address
0x6d09b0· 580 bytes, up to0x6d0bf3- Signature
void __thiscall (void *this, uint32_t lod, uint32_t rows)- Meaning
- Sizes the cloud texture by its level, fills it white and binds it to the device
- Confidence
- verified, proof one
- Finding
- lighting/clouds#cloud-texture
Finding: Cloud texture in lighting: clouds
The texture is a square of cols × cols texels, cols = 128 at SkyCloudLOD 0 and 256 at 1 (the
setting clamped to [0, 1], default 0), with a row shift of 7 or 8. Every 0.1 s of frame time the
cloud update builds the next 32 rows: noise cover, then colour, then a device update of that band;
past the last row it wraps to row 0 and advances the noise phase. A full rebuild regenerates every
row at once. The texture starts white and opaque.
The derivation is in the doc.
Callers 2
- InitSky lighting
- OnSkyCloudLodChanged lighting
Callees 15
- FreeFloatBuffer loadingscreen
- ResizeFloatList spline
- SetArrayCapacity503d10 ui
- FreeField5260c0 ui
- 0x5268b0 ui
- CGxTexFlags::CGxTexFlags gx
- GxTexCreate2D gx
- GxTexDestroy gx
- 0x595fa0 gx
- 0x5960a0 gx
- 0x5970f0 gx
- 0x6d4f90 lighting
- 0x6d4fd0 lighting
- 0x6d5010 lighting
- 0x6d5050 lighting
Calls and jumps by a bare address, from tables/calls.tsv.