benilla-re systems structs docs

CParticleEmitter2::SetTextureGrid

function · models · primitive

Address
0x7b4ed0 · 134 bytes, up to 0x7b4f55
Meaning
Sets the texture grid when both sizes are powers of two: counts, column shift and cell sizes
Confidence
verified, proof one
Finding
models/particles#head-quads
Test
models::tile_grid_recip_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 1

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