Skip to content

shapeTexture

shapeTexture(shape): TextureResource

Defined in: particles/src/shapes.ts:86

Resolve a built-in shape to its texture. The returned texture is shared by every emitter using that shape and size, so callers must never destroy it.

ParticleShape | ShapeConfig

TextureResource

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.