mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
15 lines
296 B
Text
15 lines
296 B
Text
uniform vec4 uniColors[4];
|
|
varying vec4 varColor;
|
|
void main ()
|
|
{
|
|
vec4 col_1;
|
|
gl_Position = gl_Vertex;
|
|
col_1 = uniColors[0];
|
|
col_1 = (col_1 + uniColors[1]);
|
|
col_1 = (col_1 + uniColors[2]);
|
|
col_1 = (col_1 + uniColors[3]);
|
|
varColor = col_1;
|
|
}
|
|
|
|
|
|
// inputs: 1, stats: 3 alu 0 tex 0 flow
|