benilla-re systems structs docs

s_particleQuadCorners

global · models

Address
0x87d714 · 64 bytes, up to 0x87d753
Type
const float[16]
Meaning
Holds the four quad corners and their four texture corners
Confidence
verified, proof one
Finding
models/particles#head-quads

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.