#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

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

Download history 366/week @ 2025-02-05

366 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–79MB
~1.5M SLoC