CParticleEmitter2::SetFrame
function · models · primitive
- Address
0x7b5160· 200 bytes, up to0x7b5227- Meaning
- Stores the camera position, the emitter matrix relative to the frame, and the matrix's scale
- Confidence
- verified, proof one
- Finding
- models/particles#particle-view-space
- Test
models::transform_basis_scale_difftest
Finding: Particle view space in models: particles
An emitter draws in view space with the device view set to identity. Positions go through the particle matrix: for an emitter in its own space, the emitter matrix, then a translation by minus the camera position, then the view; otherwise the reference frame, when given, then the translation and the view. Every vertex takes as normal the view image of world +z.
The derivation is in the doc.
Callers 1
- CParticleEmitter2::Update models
Callees 2
- MultiplyMatrix4 cmath
- InvertAffineMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.