2012-04-03 23:30:07 -04:00
|
|
|
varying vec4 xlv_TEXCOORD0;
|
|
|
|
vec2 xll_vecTSel (
|
2012-10-07 23:41:18 -04:00
|
|
|
in bvec2 a_1,
|
|
|
|
in vec2 b_2,
|
|
|
|
in vec2 c_3
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_4;
|
|
|
|
if (a_1.x) {
|
|
|
|
tmpvar_4 = b_2.x;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_4 = c_3.x;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_5;
|
|
|
|
if (a_1.y) {
|
|
|
|
tmpvar_5 = b_2.y;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_5 = c_3.y;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
vec2 tmpvar_6;
|
|
|
|
tmpvar_6.x = tmpvar_4;
|
|
|
|
tmpvar_6.y = tmpvar_5;
|
|
|
|
return tmpvar_6;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
vec3 xll_vecTSel (
|
2012-10-07 23:41:18 -04:00
|
|
|
in bvec3 a_7,
|
|
|
|
in vec3 b_8,
|
|
|
|
in vec3 c_9
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_10;
|
|
|
|
if (a_7.x) {
|
|
|
|
tmpvar_10 = b_8.x;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_10 = c_9.x;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_11;
|
|
|
|
if (a_7.y) {
|
|
|
|
tmpvar_11 = b_8.y;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_11 = c_9.y;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_12;
|
|
|
|
if (a_7.z) {
|
|
|
|
tmpvar_12 = b_8.z;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_12 = c_9.z;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
vec3 tmpvar_13;
|
|
|
|
tmpvar_13.x = tmpvar_10;
|
|
|
|
tmpvar_13.y = tmpvar_11;
|
|
|
|
tmpvar_13.z = tmpvar_12;
|
|
|
|
return tmpvar_13;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
vec4 xll_vecTSel (
|
2012-10-07 23:41:18 -04:00
|
|
|
in bvec4 a_14,
|
|
|
|
in vec4 b_15,
|
|
|
|
in vec4 c_16
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_17;
|
|
|
|
if (a_14.x) {
|
|
|
|
tmpvar_17 = b_15.x;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_17 = c_16.x;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_18;
|
|
|
|
if (a_14.y) {
|
|
|
|
tmpvar_18 = b_15.y;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_18 = c_16.y;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_19;
|
|
|
|
if (a_14.z) {
|
|
|
|
tmpvar_19 = b_15.z;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_19 = c_16.z;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
float tmpvar_20;
|
|
|
|
if (a_14.w) {
|
|
|
|
tmpvar_20 = b_15.w;
|
2012-04-03 23:30:07 -04:00
|
|
|
} else {
|
2012-10-07 23:41:18 -04:00
|
|
|
tmpvar_20 = c_16.w;
|
2012-04-03 23:30:07 -04:00
|
|
|
};
|
2012-10-07 23:41:18 -04:00
|
|
|
vec4 tmpvar_21;
|
|
|
|
tmpvar_21.x = tmpvar_17;
|
|
|
|
tmpvar_21.y = tmpvar_18;
|
|
|
|
tmpvar_21.z = tmpvar_19;
|
|
|
|
tmpvar_21.w = tmpvar_20;
|
|
|
|
return tmpvar_21;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
vec4 xlat_main (
|
2012-10-07 23:41:18 -04:00
|
|
|
in vec4 uv_22
|
2012-04-03 23:30:07 -04:00
|
|
|
)
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
vec4 a_23;
|
|
|
|
vec4 tmpvar_24;
|
|
|
|
tmpvar_24 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
|
|
a_23 = tmpvar_24;
|
|
|
|
bvec4 tmpvar_25;
|
|
|
|
tmpvar_25 = greaterThan (uv_22, vec4(0.5, 0.5, 0.5, 0.5));
|
|
|
|
vec4 tmpvar_26;
|
|
|
|
tmpvar_26 = xll_vecTSel (tmpvar_25, vec4(1.0, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0));
|
|
|
|
vec4 tmpvar_27;
|
|
|
|
tmpvar_27 = (a_23 + tmpvar_26);
|
|
|
|
a_23 = tmpvar_27;
|
|
|
|
bvec4 tmpvar_28;
|
|
|
|
tmpvar_28 = greaterThan (uv_22, vec4(0.5, 0.5, 0.5, 0.5));
|
|
|
|
vec4 tmpvar_29;
|
|
|
|
tmpvar_29 = xll_vecTSel (tmpvar_28, vec4(1.0, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0));
|
|
|
|
vec4 tmpvar_30;
|
|
|
|
tmpvar_30 = (a_23 + tmpvar_29);
|
|
|
|
a_23 = tmpvar_30;
|
|
|
|
bvec4 tmpvar_31;
|
|
|
|
tmpvar_31 = greaterThan (uv_22, vec4(0.5, 0.5, 0.5, 0.5));
|
|
|
|
vec4 tmpvar_32;
|
|
|
|
tmpvar_32 = xll_vecTSel (tmpvar_31, vec4(1.0, 1.0, 1.0, 1.0), vec4(2.0, 2.0, 2.0, 2.0));
|
|
|
|
vec4 tmpvar_33;
|
|
|
|
tmpvar_33 = (a_23 + tmpvar_32);
|
|
|
|
a_23 = tmpvar_33;
|
|
|
|
bvec4 tmpvar_34;
|
|
|
|
tmpvar_34 = greaterThan (uv_22, vec4(0.5, 0.5, 0.5, 0.5));
|
|
|
|
vec4 tmpvar_35;
|
|
|
|
tmpvar_35 = xll_vecTSel (tmpvar_34, vec4(1.0, 1.0, 1.0, 1.0), vec4(2.0, 2.0, 2.0, 2.0));
|
|
|
|
vec4 tmpvar_36;
|
|
|
|
tmpvar_36 = (a_23 + tmpvar_35);
|
|
|
|
a_23 = tmpvar_36;
|
|
|
|
vec4 tmpvar_37;
|
|
|
|
tmpvar_37 = fract (uv_22);
|
|
|
|
bvec4 tmpvar_38;
|
|
|
|
tmpvar_38 = bvec4(tmpvar_37).xyzw;
|
|
|
|
vec4 tmpvar_39;
|
|
|
|
tmpvar_39 = xll_vecTSel (tmpvar_38, vec4(1.0, 1.0, 1.0, 1.0), vec4(2.0, 2.0, 2.0, 2.0));
|
|
|
|
vec4 tmpvar_40;
|
|
|
|
tmpvar_40 = (a_23 + tmpvar_39);
|
|
|
|
a_23 = tmpvar_40;
|
|
|
|
return a_23;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void main ()
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
vec4 xl_retval_41;
|
|
|
|
vec4 tmpvar_42;
|
|
|
|
tmpvar_42 = xlv_TEXCOORD0.xyzw;
|
|
|
|
vec4 tmpvar_43;
|
|
|
|
tmpvar_43 = xlat_main (tmpvar_42);
|
|
|
|
vec4 tmpvar_44;
|
|
|
|
tmpvar_44 = tmpvar_43;
|
|
|
|
xl_retval_41 = tmpvar_44;
|
|
|
|
vec4 tmpvar_45;
|
|
|
|
tmpvar_45 = xl_retval_41.xyzw;
|
|
|
|
vec4 tmpvar_46;
|
|
|
|
tmpvar_46 = tmpvar_45;
|
|
|
|
gl_FragData[0] = tmpvar_46;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|