ZeusWPI / Planetwars

1 stars 2 forks source link

Fix frontend voronoi #12

Open ajuvercr opened 4 years ago

ajuvercr commented 4 years ago

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).