bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-vec-var-index-in.txt

8 lines
137 B
Text
Raw Normal View History

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