bgfx/3rdparty/glsl-optimizer/tests/fragment/prec-default-inES.txt

26 lines
442 B
Text
Raw Normal View History

2013-03-17 14:29:03 -04:00
precision highp float;
precision lowp int;
2014-02-11 02:06:13 -05:00
struct MyStruct {
float f;
int i;
};
uniform MyStruct s1;
2013-03-17 14:29:03 -04:00
uniform float fh1;
uniform highp float fh2;
uniform mediump float fm;
uniform int il1;
uniform lowp int il2;
uniform mediump int im;
void main() {
2014-02-11 02:06:13 -05:00
lowp float f = fh1 + fh2 + fm + s1.f;
highp int i = il1 + il2 + im + s1.i;
2014-03-29 19:26:01 -04:00
float z = 0.0;
z += gl_FragCoord.x > 0.5 ? 0.9 : 0.1;
gl_FragColor = vec4(f, i, z, 0.0);
2013-03-17 14:29:03 -04:00
}