struct ParticleMeshRenderData

Inherits: ParticleRenderData

Contains data used for rendering particles as meshes.

Per-particle data is stored in a 2D square layout so it can be used for quickly initializing a texture.

Public

Fields

Position

PixelData Position

Contains particle positions in .xyz with .w unused.

Color

Contains particle color in .xyz and transparency in .a.

Size

Contains particle size in .xyz with .w unused.

Rotation

PixelData Rotation

Contains particle rotation in radians in .xyz with .w unused.

Indices

Vector<u32> Indices

Contains mapping from unsorted to sorted particle indices.

NumParticles

u32 NumParticles

Total number of particles in the particle system.

Bounds

AABox Bounds

Bounds of the particle system, in the system's simulation space.