csharp
public readonly record struct ParticleInstanceOne particle's worth of per-instance data, for a mesh renderer.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Three rows, not four. The fourth row of an affine transform is always (0, 0, 0, 1) and uploading it is sixteen bytes an instance to say so. Three float4s is what every instanced renderer uses and what the vertex shader reassembles.
Rows rather than columns because that is the packing that puts the translation in the w lanes, where one dot per axis reconstructs a transformed position. The convention has to be written down somewhere and this is the somewhere.
Fields and properties (4)
Methods (1)
Used by (3)
- ParticleRenderFeatureVixen.Rendering
- VfxGeometryBuilderVixen.Vfx
- VfxRibbonTestsVixen.Vfx.Tests