mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-12 01:01:30 -05:00
76 lines
1.5 KiB
Text
76 lines
1.5 KiB
Text
varying vec4 xlv_TEXCOORD0;
|
|
vec4 xlat_main (
|
|
in vec4 uv_1
|
|
)
|
|
{
|
|
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;
|
|
};
|
|
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);
|
|
};
|
|
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);
|
|
};
|
|
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);
|
|
};
|
|
vec2 tmpvar_11;
|
|
tmpvar_11 = (c_2.xy + tmpvar_10);
|
|
c_2.xy = tmpvar_11.xy.xy;
|
|
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;
|
|
};
|
|
float tmpvar_14;
|
|
tmpvar_14 = (c_2.x + tmpvar_13);
|
|
c_2.x = tmpvar_14;
|
|
return c_2;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
vec4 xl_retval_15;
|
|
vec4 tmpvar_16;
|
|
tmpvar_16 = xlv_TEXCOORD0.xyzw;
|
|
vec4 tmpvar_17;
|
|
tmpvar_17 = xlat_main (tmpvar_16);
|
|
vec4 tmpvar_18;
|
|
tmpvar_18 = tmpvar_17;
|
|
xl_retval_15 = tmpvar_18;
|
|
vec4 tmpvar_19;
|
|
tmpvar_19 = xl_retval_15.xyzw;
|
|
vec4 tmpvar_20;
|
|
tmpvar_20 = tmpvar_19;
|
|
gl_FragData[0] = tmpvar_20;
|
|
}
|
|
|