bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-vec-var-index-in.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

7 lines
137 B
Text

void main() {
vec2 c = vec2(0.0);
for (int j = 0; j < 2; ++j) {
c += abs (vec2(vec2(0.0)[j]));
}
gl_FragColor = vec4(c,0.0,0.0);
}