Fixed normals nor averaging when at a corner.

This commit is contained in:
Tleety
2014-06-04 05:56:38 +02:00
parent 74b86bc6d4
commit d5dcb0b72c
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ vec4 phong(vec3 position, vec3 normal, vec3 specular)
float specularFactorSun = pow(dotSpecular, specularExponent);
vec3 sIs = specular.r * SunSpecularLight * specularFactorSun;
return vec4((sId), sIs.r);
return vec4((sId + La), sIs.r);
}
void main()