mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-11 00:31:28 -05:00
31 lines
558 B
Text
31 lines
558 B
Text
uniform vec4 uniColors[4];
|
|
varying vec4 varColor;
|
|
void main ()
|
|
{
|
|
int i_1;
|
|
vec4 col_2;
|
|
vec4 tmpvar_3;
|
|
tmpvar_3 = gl_Vertex;
|
|
gl_Position = tmpvar_3;
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = vec4(0.0, 0.0, 0.0, 0.0);
|
|
col_2 = tmpvar_4;
|
|
int tmpvar_5;
|
|
tmpvar_5 = 0;
|
|
i_1 = tmpvar_5;
|
|
while (true) {
|
|
if (!((i_1 < 4))) {
|
|
break;
|
|
};
|
|
vec4 tmpvar_6;
|
|
tmpvar_6 = (col_2 + uniColors[i_1]);
|
|
col_2 = tmpvar_6;
|
|
int tmpvar_7;
|
|
tmpvar_7 = (i_1 + 1);
|
|
i_1 = tmpvar_7;
|
|
};
|
|
vec4 tmpvar_8;
|
|
tmpvar_8 = col_2;
|
|
varColor = tmpvar_8;
|
|
}
|
|
|