aboutsummaryrefslogtreecommitdiff
path: root/web/pw-visualizer/assets/shaders/frag/vor.glsl
blob: faaa68f2ff9524165595e38d60c9002c38af3e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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);
}