bgfx/3rdparty/glsl-optimizer/tests/fragment/ternary-outES.txt

50 lines
1.1 KiB
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying highp vec4 xlv_TEXCOORD0;
void main ()
{
2012-10-07 23:41:18 -04:00
mediump vec4 c_1;
c_1 = vec4(0.0, 0.0, 0.0, 0.0);
2014-10-11 15:32:43 -04:00
highp float tmpvar_2;
2012-04-03 23:30:07 -04:00
if ((xlv_TEXCOORD0.x > 0.5)) {
2012-10-07 23:41:18 -04:00
tmpvar_2 = 0.9;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_2 = 0.1;
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
c_1 = vec4(tmpvar_2);
2014-10-11 15:32:43 -04:00
highp vec4 tmpvar_3;
2012-04-03 23:30:07 -04:00
if ((xlv_TEXCOORD0.x > 0.5)) {
2012-10-07 23:41:18 -04:00
tmpvar_3 = vec4(0.9, 0.9, 0.9, 0.9);
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_3 = vec4(0.1, 0.1, 0.1, 0.1);
2012-04-03 23:30:07 -04:00
};
2014-10-11 15:32:43 -04:00
c_1 = (vec4(tmpvar_2) + tmpvar_3);
highp vec3 tmpvar_4;
2012-04-03 23:30:07 -04:00
if ((xlv_TEXCOORD0.x > 0.5)) {
2014-10-11 15:32:43 -04:00
tmpvar_4 = vec3(0.9, 0.9, 0.9);
2012-04-03 23:30:07 -04:00
} else {
2014-10-11 15:32:43 -04:00
tmpvar_4 = vec3(0.1, 0.1, 0.1);
2012-04-03 23:30:07 -04:00
};
2014-10-11 15:32:43 -04:00
c_1.xyz = (c_1.xyz + tmpvar_4);
highp vec2 tmpvar_5;
2012-04-03 23:30:07 -04:00
if ((xlv_TEXCOORD0.x > 0.5)) {
2014-10-11 15:32:43 -04:00
tmpvar_5 = vec2(0.9, 0.9);
2012-04-03 23:30:07 -04:00
} else {
2014-10-11 15:32:43 -04:00
tmpvar_5 = vec2(0.1, 0.1);
2012-04-03 23:30:07 -04:00
};
2014-10-11 15:32:43 -04:00
c_1.xy = (c_1.xy + tmpvar_5);
highp float tmpvar_6;
tmpvar_6 = fract(xlv_TEXCOORD0.x);
2012-10-07 23:41:18 -04:00
highp float tmpvar_7;
2014-10-11 15:32:43 -04:00
if (bool(tmpvar_6)) {
tmpvar_7 = 0.9;
2012-04-03 23:30:07 -04:00
} else {
2014-10-11 15:32:43 -04:00
tmpvar_7 = 0.1;
2012-04-03 23:30:07 -04:00
};
2014-10-11 15:32:43 -04:00
c_1.x = (c_1.x + tmpvar_7);
2012-10-07 23:41:18 -04:00
gl_FragData[0] = c_1;
2012-04-03 23:30:07 -04:00
}
2014-02-11 02:06:13 -05:00
2014-10-11 15:32:43 -04:00
// stats: 21 alu 0 tex 5 flow
// inputs: 1
// #0: xlv_TEXCOORD0 (high float) 4x1 [-1]