Рет қаралды 3,486
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
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:
www.shadertoy....
Resources:
Inigo Quilez's origional article on the algorithm
iquilezles.org...
tomkh's shader which also has links to a diagram he wrote that helped it make sense for me
www.shadertoy....
Shane's Rounded border shader inspired the lighting/art style:
www.shadertoy....
Resource on the smooth minumum function:
• Function Smoothing Exp...
floating point image was by Stannered from wikipedia commons:
commons.wikime...