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

19 lines
356 B
Text

uniform float otherValue;
uniform float value;
void main ()
{
float result;
float invValue;
float tmpvar_1;
tmpvar_1 = (1.0 / value);
invValue = tmpvar_1;
float tmpvar_2;
tmpvar_2 = (otherValue / invValue);
result = tmpvar_2;
vec4 tmpvar_3;
tmpvar_3 = vec4(result);
vec4 tmpvar_4;
tmpvar_4 = tmpvar_3;
gl_FragColor = tmpvar_4;
}