bgfx/3rdparty/glsl-optimizer/tests/vertex/loops-forwithcalls-in.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

9 lines
201 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 += max (vec4(0.0), uniColors[i]);
varColor = col;
}