background.fs 193 B

12345678910111213
  1. #version 100
  2. precision highp float;
  3. uniform vec4 top_color;
  4. uniform vec4 bottom_color;
  5. varying vec2 tex_coord;
  6. void main()
  7. {
  8. gl_FragColor = mix(bottom_color, top_color, tex_coord.y);
  9. }