benilla-re systems structs docs

CParticleEmitter2::WriteQuads

function · models · primitive

Address
0x7b2a50 · 2691 bytes, up to 0x7b34d2
Meaning
Writes a particle's head and tail quads with colour, size and texture cell; returns 0 when twinkle hides it
Confidence
verified, proof one
Finding
models/particles#head-quads
Test
models::particle_quad_expand_difftest, models::particle_quad_expand_rotated_difftest, models::particle_quad_expand_stretched_difftest, models::particle_quad_expand_tiled_difftest, models::particle_quad_expand_tiled_rotated_difftest

Finding: Head quads in models: particles

A head is a square of half-size s around the view position, corners (−1, 1), (−1, −1), (1, 1), (1, −1) with texture corners (0, 0), (0, 1), (1, 0), (1, 1) inside its cell; a cell c of a grid with C columns and R rows starts at ((c & (C − 1))/C, (c >> log2 C)/R). With a spin w the square turns by w·age in the view plane, negated for alternate particle slots under flag 0x8000. With flag 0x2000 the square lies in the emitter's xy plane instead, turned about the emitter's z axis. Flag 0x200 scales s by the emitter's scale.

The derivation is in the doc.

Callers 1

Callees 5

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