
🍩 Sprinkles
Sprinkles is a GPU-accelerated particle system for the Bevy game engine with a built-in dedicated visual editor.
Usage
Add bevy_sprinkles to your project:
[]
= "0.1"
Add the plugin to your Bevy app:
use *;
use *;
Spawn a particle system from a RON asset file:
Editor
Sprinkles comes with a visual editor for designing particle systems. To run it from the repository:
Or install the editor globally:
Then run it from anywhere with the sprinkles command.
Documentation
Documentation is available at docs.rs.
Bevy version table
| Bevy | Sprinkles |
|---|---|
| 0.18 | 0.1, main |
Features
- 3D
- Emission
- Particle amount & one shot
- Explosiveness & spawn randomness
- Lifetime & lifetime randomness
- Fixed FPS & fixed seed
- Emission shapes
- Amount ratio
- Speed scale
- Preprocess (simulate ahead)
- Interpolation to end
- Frame interpolation
- Local coordinates
- Direction & velocity
- Initial direction, spread & flatness
- Initial velocity
- Velocity inherit ratio & pivot
- Radial velocity
- Angular velocity
- Orbit velocity
- Directional velocity
- Velocity limit curve
- Acceleration
- Gravity
- Linear
- Radial
- Tangential
- Damping
- Scale & rotation
- Initial scale & scale over lifetime
- Initial angle & angle over lifetime
- Scale over velocity
- Color
- Initial color (solid or gradient)
- Color over lifetime, alpha over lifetime, emission over lifetime
- Hue variation
- Drawing
- Draw order
- Transform alignment
- PBR material & custom shaders
- Mesh options (quad, sphere, cuboid, cylinder, prism)
- Turbulence
- Collision
- Collision mode, bounce, friction, scale & base size
- Box & sphere collider shapes
- Attractors
- Sub-emitters
- Trails
- Emission
- 2D
- Sprite texture rendering
- 2D trails
- 2D visibility rect
- Pixel-scale collision defaults
Acknowledgements
Godot's particle system is a huge source of inspiration for Sprinkles, and we aim to reach feature parity at some point. Thank you for all it's contributors.
Brackeys' video on making VFX with Godot was what inspired me to work on a similar system for Bevy and adapt some of those VFXs to it.
All bundled textures are provided by the very talented and generous Kenney.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Project examples and bundled textures are licensed under CC0.
The editor includes two icon sets:
- Remix Icon, licensed under Remix Icon License v1.0
- Blender icons, licensed under CC BY-SA 4.0 by Andrzej Ambroż. [source]
The donut icon is an edited version of the Noto Emoji, licensed under Apache 2.0.