CParticleEmitter2::WriteAllQuads
function · models · primitive
- Address
0x7b3a10· 573 bytes, up to0x7b3c4c- Meaning
- Writes every particle's quads, in depth order when the emitter sorts
- Confidence
- verified, proof one
- Finding
- models/particles#draw-order-and-batches
- Test
models::depth_dot_render_difftest
Finding: Draw order and batches in models: particles
An emitter with flag 0x10 draws its particles in descending view z, the third column of the
particle matrix, through a binary heap; others draw in live-list order. Each quad is two triangles
(0, 1, 2) and (3, 2, 1); with both heads and tails a particle writes eight vertices. A frame draws
at most 0x4000/vertices particles, the first popped or the first in the live list, and nothing
while the texture has no device object. The colour bytes are swapped to the device's order when its caps ask.
The derivation is in the doc.
Callers 1
- CParticleEmitter2::Render models
Callees 3
- CParticleEmitter2::WriteQuads models
- ParticleDepthSortPush models
- ParticleDepthSortPop models
Calls and jumps by a bare address, from tables/calls.tsv.