bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-grafting-precision-irES.txt
2014-02-10 23:06:13 -08:00

28 lines
608 B
Text

varying lowp vec3 normal;
varying lowp vec3 halfDir;
uniform mediump float specPower;
void main ()
{
lowp vec4 c_1;
mediump float spec_2;
lowp float nh_3;
lowp float tmpvar_4;
tmpvar_4 = dot (normal, halfDir);
lowp float tmpvar_5;
tmpvar_5 = tmpvar_4;
nh_3 = tmpvar_5;
mediump float tmpvar_6;
tmpvar_6 = pow (nh_3, specPower);
mediump float tmpvar_7;
tmpvar_7 = tmpvar_6;
spec_2 = tmpvar_7;
mediump vec4 tmpvar_8;
tmpvar_8 = vec4(spec_2);
mediump vec4 tmpvar_9;
tmpvar_9 = tmpvar_8;
c_1 = tmpvar_9;
lowp vec4 tmpvar_10;
tmpvar_10 = c_1;
gl_FragColor = tmpvar_10;
}