2019-09-17 20:19:04 +02:00
|
|
|
#ifdef GL_ES
|
|
|
|
precision mediump float;
|
|
|
|
#endif
|
|
|
|
|
2019-09-19 18:27:56 +02:00
|
|
|
uniform float u_step_interval;
|
|
|
|
uniform float u_time;
|
2019-09-19 17:52:48 +02:00
|
|
|
uniform vec3 u_color;
|
2019-09-19 18:27:56 +02:00
|
|
|
uniform vec3 u_color_next;
|
2019-09-17 20:19:04 +02:00
|
|
|
|
|
|
|
void main() {
|
2019-09-21 11:37:26 +02:00
|
|
|
|
|
|
|
vec3 color = mix(u_color, u_color_next, u_time);
|
|
|
|
|
2019-09-19 18:27:56 +02:00
|
|
|
gl_FragColor = vec4(color, 1.0);
|
2019-09-17 20:19:04 +02:00
|
|
|
}
|