bgfx/3rdparty/glsl-optimizer/tests/fragment/loop-fornounroll-inES.txt

8 lines
144 B
Text
Raw Normal View History

2013-03-17 14:29:03 -04:00
void main() {
int i = 0;
float f = 0.0;
for (; i < 32; (++i))
f += gl_FragCoord.x * float(i);
gl_FragColor = vec4(f);
}