demo: Fix the GLES fragment shader for GLArea

We have a couple of syntax errors, like 'f' modifier for floating point
values.
This commit is contained in:
Emmanuele Bassi 2016-12-14 18:36:18 +00:00
parent 33e4826efd
commit da43bfd272

View File

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