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

18 lines
305 B
Text
Raw Normal View History

2019-09-24 14:29:13 +02:00
#ifdef GL_ES
precision mediump float;
#endif
uniform vec3 u_planet_colours[$PLANETS * 2];
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 10:31:20 +02:00
varying float v_intensity;
2020-04-18 16:52:17 +02:00
varying vec3 v_color;
2019-09-24 14:29:13 +02:00
varying vec2 v_pos;
void main() {
2020-04-20 10:31:20 +02:00
gl_FragColor = vec4(v_color, v_intensity * 0.7);
2019-09-24 14:29:13 +02:00
}