bevy_voronoi

Crates.iobevy_voronoi
lib.rsbevy_voronoi
version0.4.1
created_at2025-02-05 08:19:25.555885+00
updated_at2025-09-08 11:11:05.419944+00
descriptionA low-level Bevy library to generate Voronoi diagrams from 2d meshes
homepage
repositoryhttps://github.com/malbernaz/bevy_voronoi
max_upload_size
id1543668
size196,201
Miguel Albernaz (malbernaz)

documentation

README

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.
  • Attaches a VoronoiTexture component to the view entity in the render world with the fragment coordinates for the diagram and the original alpha mask.

Usage

See the examples folder for usage details.

Compatibility

bevy bevy_voronoi
0.16 0.3..0.4
0.15 0.1..0.2
Commit count: 40

cargo fmt