Merge branch 'master' of https://github.com/supertuxkart/stk-code
This commit is contained in:
commit
05d43440b2
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user