mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
varying highp vec4 xlv_TEXCOORD0;
|
|
void main ()
|
|
{
|
|
mediump vec4 c_1;
|
|
c_1 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
highp float tmpvar_2;
|
|
if ((xlv_TEXCOORD0.x > 0.5)) {
|
|
tmpvar_2 = 0.9;
|
|
} else {
|
|
tmpvar_2 = 0.1;
|
|
};
|
|
c_1 = vec4(tmpvar_2);
|
|
highp vec4 tmpvar_3;
|
|
if ((xlv_TEXCOORD0.x > 0.5)) {
|
|
tmpvar_3 = vec4(0.9, 0.9, 0.9, 0.9);
|
|
} else {
|
|
tmpvar_3 = vec4(0.1, 0.1, 0.1, 0.1);
|
|
};
|
|
c_1 = (vec4(tmpvar_2) + tmpvar_3);
|
|
highp vec3 tmpvar_4;
|
|
if ((xlv_TEXCOORD0.x > 0.5)) {
|
|
tmpvar_4 = vec3(0.9, 0.9, 0.9);
|
|
} else {
|
|
tmpvar_4 = vec3(0.1, 0.1, 0.1);
|
|
};
|
|
c_1.xyz = (c_1.xyz + tmpvar_4);
|
|
highp vec2 tmpvar_5;
|
|
if ((xlv_TEXCOORD0.x > 0.5)) {
|
|
tmpvar_5 = vec2(0.9, 0.9);
|
|
} else {
|
|
tmpvar_5 = vec2(0.1, 0.1);
|
|
};
|
|
c_1.xy = (c_1.xy + tmpvar_5);
|
|
highp float tmpvar_6;
|
|
tmpvar_6 = fract(xlv_TEXCOORD0.x);
|
|
highp float tmpvar_7;
|
|
if (bool(tmpvar_6)) {
|
|
tmpvar_7 = 0.9;
|
|
} else {
|
|
tmpvar_7 = 0.1;
|
|
};
|
|
c_1.x = (c_1.x + tmpvar_7);
|
|
gl_FragData[0] = c_1;
|
|
}
|
|
|
|
|
|
// stats: 21 alu 0 tex 5 flow
|
|
// inputs: 1
|
|
// #0: xlv_TEXCOORD0 (high float) 4x1 [-1]
|