This commit is contained in:
Marianne Gagnon 2014-09-14 19:07:00 -04:00
commit 05d43440b2

View File

@ -14,6 +14,6 @@ vec3 getLightFactor(float specMapValue)
vec3 DiffuseComponent = texture(DiffuseMap, tc).xyz;
vec3 SpecularComponent = texture(SpecularMap, tc).xyz;
float ao = texture(SSAO, tc).x;
vec3 tmp = DiffuseComponent + SpecularComponent * specMapValue;
vec3 tmp = DiffuseComponent + SpecularComponent * max(specMapValue, 0.);
return tmp * ao;
}