mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
14 lines
237 B
Text
14 lines
237 B
Text
|
varying vec4 varColor;
|
||
|
uniform vec4 uniColors[4];
|
||
|
void main ()
|
||
|
{
|
||
|
vec4 col;
|
||
|
gl_Position = gl_Vertex;
|
||
|
col = uniColors[0];
|
||
|
col = (col + uniColors[1]);
|
||
|
col = (col + uniColors[2]);
|
||
|
col = (col + uniColors[3]);
|
||
|
varColor = col;
|
||
|
}
|
||
|
|