createParticles
Generate GPU-optimized particle systems like stars, dust, sparks, or fire embers for 3D scenes. Configure count, spread, color, drift animation, and glow effects to create atmospheric visual elements.
Instructions
Create a particle system (stars, dust, sparks, snow, fire embers, laser trails). Uses GPU-efficient point sprites with optional drift animation and twinkle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional custom id. Auto-generated if omitted. | |
| position | No | Center position of the particle volume. | |
| count | Yes | Number of particles (default 500). Up to 10000. | |
| spread | Yes | Bounding box half-extents {x,y,z} particles spawn within. | |
| size | No | Particle size in world units (default 0.1). | |
| color | No | Hex color e.g. "#ffffff". | |
| emissive | No | Emissive/glow color. Set to same as color for self-illuminated particles. | |
| emissiveIntensity | No | Glow intensity (default 1). Higher = brighter glow with bloom. | |
| opacity | No | Particle opacity (default 0.8). | |
| speed | No | Drift speed multiplier (default 0). 0 = static. | |
| drift | No | Normalized drift direction {x,y,z}. Particles move this way * speed. | |
| sizeAttenuation | No | Whether particles shrink with distance (default true). | |
| twinkle | No | Randomize alpha each frame for star-like shimmer (default false). | |
| blending | No | Blend mode. "additive" for glowing particles (default). |