mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
13 lines
365 B
Text
13 lines
365 B
Text
varying vec4 varColor;
|
|
uniform vec4 uniColors[4];
|
|
void main ()
|
|
{
|
|
vec4 col;
|
|
gl_Position = gl_Vertex;
|
|
col = max (vec4(0.0, 0.0, 0.0, 0.0), uniColors[0]);
|
|
col = (col + max (vec4(0.0, 0.0, 0.0, 0.0), uniColors[1]));
|
|
col = (col + max (vec4(0.0, 0.0, 0.0, 0.0), uniColors[2]));
|
|
col = (col + max (vec4(0.0, 0.0, 0.0, 0.0), uniColors[3]));
|
|
varColor = col;
|
|
}
|
|
|