Voronoi function in Unity

There is a Perlin noise function in Unity Mathf.PerlinNoise() I see in the documentation that there is no equivalent for a Voronoi, so I was wondering, does anyone know a way to build a Voronoi in c# without doing all the math?

The questions sounds like: do you know how to run without legs? :smile:
Jokes aside - here some potentially useful links :slight_smile: :

There’s also this implementation which I have used in the past:
https://github.com/PouletFrit/csDelaunay

Thank you for the reply :slight_smile:

Actually something that I didn’t mention is that I wanted to build some tool and have the possibility to release it as an asset so I wanted to avoid using someone else’s work for that :slight_smile:

The posted github content has MIT license :).

1 Like

Both are broken tho. downloaded and added the pixels, tried its sample code, 3 errors there. 2 about canvas, third about no methods.

Tried the delaunay thing, downloaded it, it had no package json so dragged it in project, loads of errors, unity only displays 8 but i bet there are many more.