mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
34 lines
612 B
Text
34 lines
612 B
Text
|
varying vec4 varColor;
|
||
|
uniform vec4 uniColors[4];
|
||
|
void main ()
|
||
|
{
|
||
|
int i;
|
||
|
vec4 col;
|
||
|
vec4 tmpvar_1;
|
||
|
tmpvar_1 = gl_Vertex;
|
||
|
gl_Position = tmpvar_1;
|
||
|
vec4 tmpvar_2;
|
||
|
tmpvar_2 = vec4(0.0, 0.0, 0.0, 0.0);
|
||
|
col = tmpvar_2;
|
||
|
int tmpvar_3;
|
||
|
tmpvar_3 = 0;
|
||
|
i = tmpvar_3;
|
||
|
while (true) {
|
||
|
if (!((i < 4))) {
|
||
|
break;
|
||
|
};
|
||
|
vec4 tmpvar_4;
|
||
|
tmpvar_4 = max (vec4(0.0, 0.0, 0.0, 0.0), uniColors[i]);
|
||
|
vec4 tmpvar_5;
|
||
|
tmpvar_5 = (col + tmpvar_4);
|
||
|
col = tmpvar_5;
|
||
|
int tmpvar_6;
|
||
|
tmpvar_6 = (i + 1);
|
||
|
i = tmpvar_6;
|
||
|
};
|
||
|
vec4 tmpvar_7;
|
||
|
tmpvar_7 = col;
|
||
|
varColor = tmpvar_7;
|
||
|
}
|
||
|
|