Skip to content

TextureSource

TextureSource = { shape?: never; texture: TextureInput; textureKey?: never; } | { shape?: never; texture?: never; textureKey: string; } | { shape?: ParticleShape | ShapeConfig; texture?: never; textureKey?: never; }

Defined in: particles/src/types.ts:19

Where an emitter’s particles get their look. The three options are mutually exclusive: setting more than one is a type error. With none of them set, the emitter renders the default "pixel" shape.