background.fs 169 B

1234567891011
  1. #version 110
  2. uniform vec4 top_color;
  3. uniform vec4 bottom_color;
  4. varying vec2 tex_coord;
  5. void main()
  6. {
  7. gl_FragColor = mix(bottom_color, top_color, tex_coord.y);
  8. }