Skip to content

TextureSource

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

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

Where an emitter’s particles get their look. The two options are mutually exclusive: setting both is a type error. With neither set, the emitter renders the default "pixel" shape.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/particles.md.