Revert "Do not allow specvalue to be below 0."
This reverts commit 6b4430caaa
.
This commit is contained in:
parent
fbb71bca7e
commit
4c6df4821d
@ -14,6 +14,6 @@ vec3 getLightFactor(float specMapValue)
|
|||||||
vec3 DiffuseComponent = texture(DiffuseMap, tc).xyz;
|
vec3 DiffuseComponent = texture(DiffuseMap, tc).xyz;
|
||||||
vec3 SpecularComponent = texture(SpecularMap, tc).xyz;
|
vec3 SpecularComponent = texture(SpecularMap, tc).xyz;
|
||||||
float ao = texture(SSAO, tc).x;
|
float ao = texture(SSAO, tc).x;
|
||||||
vec3 tmp = DiffuseComponent + SpecularComponent * max(specMapValue, 0.);
|
vec3 tmp = DiffuseComponent + SpecularComponent * specMapValue;
|
||||||
return tmp * ao;
|
return tmp * ao;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user