mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
10 lines
184 B
Text
10 lines
184 B
Text
|
uniform vec4 uniColors[4];
|
||
|
varying vec4 varColor;
|
||
|
void main() {
|
||
|
gl_Position = gl_Vertex;
|
||
|
vec4 col = vec4(0.0);
|
||
|
for (int i = 0; i < 4; ++i)
|
||
|
col += uniColors[i];
|
||
|
varColor = col;
|
||
|
}
|