#voronoi-diagram #mesh #generate #low-level #bevy #2d #texture

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

#54 in Rendering

Download history 298/week @ 2025-02-03 152/week @ 2025-02-10 121/week @ 2025-02-17 40/week @ 2025-02-24 69/week @ 2025-03-03 19/week @ 2025-03-10

264 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

~43–80MB
~1.5M SLoC