The voronoi diagram is calculated at every frame in the voronoi fragment schader, wtf.
There are a few solutions, create voronoi in rust code, create voronoi in ts code, ditch voronoi and go to some kind of light simulation in the vertex shader (something in the trend of https://www.shadertoy.com/view/lsfGzr).
The voronoi diagram is calculated at every frame in the voronoi fragment schader, wtf.
There are a few solutions, create voronoi in rust code, create voronoi in ts code, ditch voronoi and go to some kind of light simulation in the vertex shader (something in the trend of https://www.shadertoy.com/view/lsfGzr).