gradient.fs 174 B

1234567891011
  1. #version 120
  2. uniform vec4 start;
  3. uniform vec4 end;
  4. varying vec4 position;
  5. void main() {
  6. float blend = (position.y + 1.0) / 2.0;
  7. gl_FragColor = mix(end, start, blend);
  8. }