Revert "Do not allow specvalue to be below 0."

This reverts commit 6b4430caaa.
This commit is contained in:
Vincent Lejeune 2014-09-16 00:37:49 +02:00
parent fbb71bca7e
commit 4c6df4821d

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 * max(specMapValue, 0.);
vec3 tmp = DiffuseComponent + SpecularComponent * specMapValue;
return tmp * ao;
}