#mesh #graphics #bevy-voronoi

bevy_voronoi

A low-level Bevy library to generate Voronoi diagrams from 2d meshes

4 releases

0.2.0 Feb 10, 2025
0.1.2 Feb 5, 2025
0.1.1 Feb 5, 2025
0.1.0 Feb 5, 2025

#863 in Game dev

Download history 366/week @ 2025-02-05 137/week @ 2025-02-12 75/week @ 2025-02-19 81/week @ 2025-02-26 32/week @ 2025-03-05 26/week @ 2025-03-12 13/week @ 2025-03-19 24/week @ 2025-03-26 23/week @ 2025-04-02

91 downloads per month
Used in bevy_lit

MIT license

51KB
816 lines

demo

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

~47–84MB
~1.5M SLoC