s_particleViewMatrix
global · models
- Address
0xcf5b68· 64 bytes, up to0xcf5ba7- Type
float[16]- Meaning
- Holds the matrix an emitter's draw takes particle positions into view space with
- Confidence
- verified, proof one
- Finding
- models/particles#particle-view-space
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.