4 releases
new 0.2.0 | Feb 10, 2025 |
---|---|
0.1.2 | Feb 5, 2025 |
0.1.1 | Feb 5, 2025 |
0.1.0 | Feb 5, 2025 |
#60 in Rendering
366 downloads per month
Used in bevy_lit
51KB
816 lines
bevy_voronoi
A low-level Bevy plugin for generating Voronoi diagrams from 2D meshes and textures.
Features
- Generates Voronoi diagrams from any
Mesh2d
. - Supports alpha masks for transparency and occlusion.
- Uses the Jump Flood Algorithm (JFA) for efficient computation.
- Outputs a VoronoiTexture in the render world with the fragment coordinates for the diagram.
Usage
See the examples folder for usage details.
Compatibility
bevy | bevy_voronoi |
---|---|
0.15 |
0.1..0.2 |
Dependencies
~43–79MB
~1.5M SLoC