mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
32 lines
536 B
Text
32 lines
536 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 = (col + uniColors[i]);
|
||
|
col = tmpvar_4;
|
||
|
int tmpvar_5;
|
||
|
tmpvar_5 = (i + 1);
|
||
|
i = tmpvar_5;
|
||
|
};
|
||
|
vec4 tmpvar_6;
|
||
|
tmpvar_6 = col;
|
||
|
varColor = tmpvar_6;
|
||
|
}
|
||
|
|