If you already understand the basic voronoi algorithm you can start here. Part one explains why I dont use fract(). Otherwise feel free to check out part 1: • Voronoi Edges Explained (why you don'...
In this video:
More vector diagrams and code for the voronoi edges algorithm. I discuss other versions you might find and explain why although they might seem different on the surface, algebraicly they are the same. Then I walk through the process of creating the artwork I show in the thumbnail.
In the introductory video:
I do vector diagrams and show the code for a version of the basic voronoi algorithm that doesn't use the fract function. This isn't strictly nessessary for the voronoi edges algorithm. I chose to show this version because it might help people see the math better.
Here is the final code for this project running live on shadertoy:
https://www.shadertoy.com/view/lXVXWt
Resources:
Inigo Quilez's origional article on the algorithm
https://iquilezles.org/articles/voron...
tomkh's shader which also has links to a diagram he wrote that helped it make sense for me
https://www.shadertoy.com/view/llG3zy
Shane's Rounded border shader inspired the lighting/art style:
https://www.shadertoy.com/view/ll3GRM
Resource on the smooth minumum function:
• Function Smoothing Explained!
floating point image was by Stannered from wikipedia commons:
https://commons.wikimedia.org/wiki/Fi...