mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
76 lines
1.6 KiB
Text
76 lines
1.6 KiB
Text
varying highp vec4 xlv_TEXCOORD0;
|
|
mediump vec4 xlat_main (
|
|
in highp vec4 uv_1
|
|
)
|
|
{
|
|
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;
|
|
} else {
|
|
tmpvar_4 = 0.1;
|
|
};
|
|
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);
|
|
} else {
|
|
tmpvar_6 = vec4(0.1, 0.1, 0.1, 0.1);
|
|
};
|
|
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);
|
|
} else {
|
|
tmpvar_8 = vec3(0.1, 0.1, 0.1);
|
|
};
|
|
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);
|
|
} else {
|
|
tmpvar_10 = vec2(0.1, 0.1);
|
|
};
|
|
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;
|
|
} else {
|
|
tmpvar_13 = 0.1;
|
|
};
|
|
mediump float tmpvar_14;
|
|
tmpvar_14 = (c_2.x + tmpvar_13);
|
|
c_2.x = tmpvar_14;
|
|
return c_2;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
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;
|
|
}
|
|
|