2012-04-03 23:30:07 -04:00
|
|
|
varying lowp vec3 normal;
|
2014-02-11 02:06:13 -05:00
|
|
|
varying lowp vec3 halfDir;
|
|
|
|
uniform mediump float specPower;
|
2012-04-03 23:30:07 -04:00
|
|
|
void main ()
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
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;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|