bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-grafting-precision-irES.txt

29 lines
587 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
uniform mediump float specPower;
varying lowp vec3 halfDir;
varying lowp vec3 normal;
void main ()
{
lowp vec4 c;
mediump float spec;
lowp float nh;
lowp float tmpvar_1;
tmpvar_1 = dot (normal, halfDir);
lowp float tmpvar_2;
tmpvar_2 = tmpvar_1;
nh = tmpvar_2;
mediump float tmpvar_3;
tmpvar_3 = pow (nh, specPower);
mediump float tmpvar_4;
tmpvar_4 = tmpvar_3;
spec = tmpvar_4;
mediump vec4 tmpvar_5;
tmpvar_5 = vec4(spec);
mediump vec4 tmpvar_6;
tmpvar_6 = tmpvar_5;
c = tmpvar_6;
lowp vec4 tmpvar_7;
tmpvar_7 = c;
gl_FragColor = tmpvar_7;
}