Open GoogleCodeExporter opened 8 years ago
Same is true for ADSPhong.fp (that is, this time in the fragment shader) from
same Chapter, example ADSPhong.
Original comment by r45...@gmail.com
on 2 Jul 2011 at 12:14
Probably another issue in these shaders:
// Specular Light
vec3 vReflection = normalize(reflect(-vLightDir, vEyeNormal));
float spec = max(0.0, dot(vEyeNormal, vReflection));
if(diff != 0) { //THIS LINE PROBABLY MUST BE "if(spec != 0) {"
float fSpec = pow(spec, 128.0);
vVaryingColor.rgb += vec3(fSpec, fSpec, fSpec);
}
Original comment by r45...@gmail.com
on 2 Jul 2011 at 12:34
Original issue reported on code.google.com by
r45...@gmail.com
on 2 Jul 2011 at 12:11