gtk2/demos/gtk-demo/glarea-gles.fs.glsl
Chun-wei Fan e5600ab99b demos: Fix glarea demo on OpenGL/ES
Some implementations of the ES 1.00 shader (such as Google's ANGLE) do
not like the 'f' suffix for floats, so just drop it, as it should be
harmless to drop.
2020-07-30 14:26:33 +08:00

8 lines
168 B
GLSL

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