planetwars.dev/web/pw-visualizer/assets/shaders/frag/simple.glsl

16 lines
257 B
Text
Raw Normal View History

2021-12-22 13:59:13 +01:00
#ifdef GL_ES
precision mediump float;
#endif
uniform float u_step_interval;
uniform float u_time;
uniform vec3 u_color;
uniform vec3 u_color_next;
void main() {
vec3 color = mix(u_color, u_color_next, u_time);
gl_FragColor = vec4(color, 1.0);
}