struct ParticleBillboardRenderData

Inherits: ParticleRenderData

Contains data used for rendering particles as billboards.

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

Public

Fields

PositionAndRotation

PixelData PositionAndRotation

Contains particle positions in .xyz and 2D rotation in .w

Color

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

SizeAndFrameIdx

PixelData SizeAndFrameIdx

Contains 2D particle size in .xy, frame index (used for animation) in .z.

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.