2012-04-03 23:30:07 -04:00
|
|
|
varying highp vec4 xlv_TEXCOORD0;
|
|
|
|
mediump vec4 xlat_main (
|
2012-10-07 23:41:18 -04:00
|
|
|
in highp vec4 uv_1
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec4 c_2;
|
|
|
|
vec4 tmpvar_3;
|
|
|
|
tmpvar_3 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
|
|
c_2 = tmpvar_3;
|
|
|
|
float tmpvar_4;
|
|
|
|
if ((uv_1.x > 0.5)) {
|
|
|
|
tmpvar_4 = 0.9;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_4 = 0.1;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec4 tmpvar_5;
|
|
|
|
tmpvar_5 = (c_2 + tmpvar_4);
|
|
|
|
c_2 = tmpvar_5;
|
|
|
|
vec4 tmpvar_6;
|
|
|
|
if ((uv_1.x > 0.5)) {
|
|
|
|
tmpvar_6 = 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_6 = vec4(0.1, 0.1, 0.1, 0.1);
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec4 tmpvar_7;
|
|
|
|
tmpvar_7 = (c_2 + tmpvar_6);
|
|
|
|
c_2 = tmpvar_7;
|
|
|
|
vec3 tmpvar_8;
|
|
|
|
if ((uv_1.x > 0.5)) {
|
|
|
|
tmpvar_8 = vec3(0.9, 0.9, 0.9);
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_8 = vec3(0.1, 0.1, 0.1);
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec3 tmpvar_9;
|
|
|
|
tmpvar_9 = (c_2.xyz + tmpvar_8);
|
|
|
|
c_2.xyz = tmpvar_9.xyz.xyz;
|
|
|
|
vec2 tmpvar_10;
|
|
|
|
if ((uv_1.x > 0.5)) {
|
|
|
|
tmpvar_10 = vec2(0.9, 0.9);
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_10 = vec2(0.1, 0.1);
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec2 tmpvar_11;
|
|
|
|
tmpvar_11 = (c_2.xy + tmpvar_10);
|
|
|
|
c_2.xy = tmpvar_11.xy.xy;
|
|
|
|
highp float tmpvar_12;
|
|
|
|
tmpvar_12 = fract (uv_1.x);
|
|
|
|
float tmpvar_13;
|
|
|
|
if (bool(tmpvar_12)) {
|
|
|
|
tmpvar_13 = 0.9;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_13 = 0.1;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump float tmpvar_14;
|
|
|
|
tmpvar_14 = (c_2.x + tmpvar_13);
|
|
|
|
c_2.x = tmpvar_14;
|
|
|
|
return c_2;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void main ()
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
mediump vec4 xl_retval_15;
|
|
|
|
highp vec4 tmpvar_16;
|
|
|
|
tmpvar_16 = xlv_TEXCOORD0.xyzw;
|
|
|
|
mediump vec4 tmpvar_17;
|
|
|
|
tmpvar_17 = xlat_main (tmpvar_16);
|
|
|
|
mediump vec4 tmpvar_18;
|
|
|
|
tmpvar_18 = tmpvar_17;
|
|
|
|
xl_retval_15 = tmpvar_18;
|
|
|
|
mediump vec4 tmpvar_19;
|
|
|
|
tmpvar_19 = xl_retval_15.xyzw;
|
|
|
|
mediump vec4 tmpvar_20;
|
|
|
|
tmpvar_20 = tmpvar_19;
|
|
|
|
gl_FragData[0] = tmpvar_20;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|