2019-09-24 14:29:13 +02:00
|
|
|
#ifdef GL_ES
|
|
|
|
precision mediump float;
|
|
|
|
#endif
|
|
|
|
|
2020-04-20 15:38:11 +02:00
|
|
|
#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
|
|
|
|
2020-04-20 15:38:11 +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() {
|
2020-04-20 15:38:11 +02:00
|
|
|
gl_FragColor = vec4(v_color, (1.0 - pow(1.0 - v_intensity, 1.23)) * 0.7);
|
2019-09-24 14:29:13 +02:00
|
|
|
}
|