bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-movevars-simple-inES.txt

15 lines
188 B
Text
Raw Normal View History

2012-10-07 23:41:18 -04:00
varying lowp float xx;
void main()
{
int i = 0;
if (xx < 0.0)
discard;
lowp float c = 0.0;
for (; i < 4; ++i)
c += xx;
gl_FragColor = vec4(c);
}