bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-op-parens-ir.txt

20 lines
356 B
Text
Raw Normal View History

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