Vixen
02b45cc4
csharp
public readonly record struct ParticleVertex

One corner of a particle's quad, as the vertex buffer holds it.

Read the guide page for this →

Remarks

World space, expanded on the CPU. The alternative — uploading a particle per instance and expanding in the vertex shader — is fewer bytes over the bus and is what the GPU path will do. This one exists because it needs nothing from the graphics stack at all, which is what lets the expansion be tested without a device.

Fields and properties (3)

  • public Vector3 Position

    Where it is, in world space.

  • public Vector2 Texture

    Its texture coordinate, from (0, 0) to (1, 1) across the quad.

  • public Vector4 Colour

    The particle's colour, the same on all four corners.

Methods (1)

  • public ParticleVertex(Vector3 Position, Vector2 Texture, Vector4 Colour)

    One corner of a particle's quad, as the vertex buffer holds it.

Used by (5)

  • ParticleRenderFeatureVixen.Rendering
  • ParticleVerticesVixen.Rendering
  • VfxGeometryBuilderVixen.Vfx
  • VfxGeometryTestsVixen.Vfx.Tests
  • VfxRibbonTestsVixen.Vfx.Tests