gtk2/demos/gtk-demo/glarea-gles.fs.glsl
Emmanuele Bassi 872b5115ea demo: Add GLES support to the GtkGLArea demo
We need new shaders, and we need to select the correct shader when
building the program we use to render the triangle.
2016-04-25 14:35:02 +01:00

8 lines
177 B
GLSL

precision highp float;
void main() {
float lerpVal = gl_FragCoord.y / 500.0f;
gl_FragColor = mix(vec4(1.0f, 0.85f, 0.35f, 1.0f), vec4(0.2f, 0.2f, 0.2f, 1.0f), lerpVal);
}