planet-wars/frontend/www/static/shaders/frag/vor.glsl
ajuvercr 129c904967
Frontend/visualiser (#24)
* refactor to src folder

* add working voronoi js file with types

* some spring cleaning

* update voronoi-core.d.ts to include inner class exports

* make voronoi go really fast

* do the voronoi dance

* better handle outliers in voronoi

* make renderer use multiple layers

* resize voronoi with resize + squash all in one buffer

* actually wait for shader factories to be created + cleanup

* show more info with FPS Counter

* POWER UP
2020-04-20 15:38:11 +02:00

19 lines
327 B
GLSL

#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.141592
uniform float u_step_interval;
uniform float u_time;
uniform bool u_vor;
varying float v_intensity;
varying float v_dist;
varying vec3 v_color;
varying vec2 v_pos;
void main() {
gl_FragColor = vec4(v_color, (1.0 - pow(1.0 - v_intensity, 1.23)) * 0.7);
}