diff options
Diffstat (limited to 'web/pw-visualizer/assets/shaders/frag/simple.glsl')
-rw-r--r-- | web/pw-visualizer/assets/shaders/frag/simple.glsl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/pw-visualizer/assets/shaders/frag/simple.glsl b/web/pw-visualizer/assets/shaders/frag/simple.glsl new file mode 100644 index 0000000..1292569 --- /dev/null +++ b/web/pw-visualizer/assets/shaders/frag/simple.glsl @@ -0,0 +1,15 @@ +#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); +} |