bgfx/3rdparty/glsl-optimizer/tests/vertex/loops-forsimple-in.txt

10 lines
184 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
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;
}