bgfx/3rdparty/glsl-optimizer/tests/fragment/ast-out.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

26 lines
403 B
Plaintext

void main ()
{
int i;
float a;
if ((gl_FragCoord.x == 1.0)) {
discard;
};
a = 4.0;
i = 0;
for (int i = 0; i < 10; ) {
a = (a + 1.0);
i = (i + 1);
};
while (true) {
a = (a + 2.0);
break;
};
float tmpvar_1;
tmpvar_1 = (a + 1.0);
float tmpvar_2;
tmpvar_2 = (1.0/(sqrt ((-((tmpvar_1 * tmpvar_1)) - 1.0))));
a = tmpvar_2;
gl_FragColor = vec4(tmpvar_2);
}