background.fs 182 B

12345678910111213
  1. #version 140
  2. uniform vec4 top_color;
  3. uniform vec4 bottom_color;
  4. in vec2 tex_coord;
  5. out vec4 out_color;
  6. void main()
  7. {
  8. out_color = mix(bottom_color, top_color, tex_coord.y);
  9. }