DrawDriftCloud
function · terrain · host
- Address
0x68efe0· 1026 bytes, up to0x68f3e1- Signature
void __thiscall (void *this)- Meaning
- Draws the visible motes as camera-facing quads of one texture cell each
- Confidence
- verified, proof one
- Finding
- terrain/waterfx#drift-draw
- Test
terrain::billboard_dot_difftest,terrain::cone_negate_difftest,terrain::quad_corner_difftest
Finding: Drift draw in terrain: water effects
0x68efe0 draws the motes as camera-facing quads in view space. A mote counts when its view-space
position has z above 0 and |x|, |y| below z; it fills a vertex buffer of 2,664 vertices (666
quads) and stops when full. A quad is the mote's position plus the corner offsets (−0.5, 0.5),
(−0.5, −0.5), (0.5, 0.5), (0.5, −0.5) times its size, in view space with identity matrices,
colour 0xffffffff, and the texture cell of its index. The state is the cloud's texture on stage 0,
blend 2, fog on for mode 2 only, depth write and lighting off.
The derivation is in the doc.
Callers 2
- CWorld::RenderParticulates terrain
- DrawDriftCloudThunk terrain
Callees 13
- GetTextureDeviceObject gx
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBufLock gx
- GxBufUnlock gx
- GxBufCreate gx
- GxVertexBufBind gx
- PassBufferToDevice gx
- GxPrimRenderOne gx
- SetDeviceView gx
- GetDeviceView gx
Calls and jumps by a bare address, from tables/calls.tsv.