planet-wars/frontend/www/static/shaders/frag/vor.glsl

19 lines
327 B
Text
Raw Permalink Normal View History

2019-09-24 14:29:13 +02:00
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.141592
2019-09-24 14:29:13 +02:00
uniform float u_step_interval;
uniform float u_time;
2020-03-29 07:15:50 +02:00
uniform bool u_vor;
2019-09-24 14:29:13 +02:00
varying float v_intensity;
varying float v_dist;
varying vec3 v_color;
2019-09-24 14:29:13 +02:00
varying vec2 v_pos;
void main() {
gl_FragColor = vec4(v_color, (1.0 - pow(1.0 - v_intensity, 1.23)) * 0.7);
2019-09-24 14:29:13 +02:00
}