Fix specular map issues causing a texture overlayif unused.
This commit is contained in:
parent
41fcaa1a73
commit
f4f946fce5
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -259,7 +259,10 @@ void main()
|
||||
|
||||
vec3 color = vec3(1);
|
||||
vec3 normal = texture(NormalMap, f_texcoord0).rgb;
|
||||
vec3 specular = texture(SpecularMap, f_texcoord0).rgb;
|
||||
vec3 specular = vec3(0);
|
||||
if (HasSpecularMap == 1){
|
||||
specular = texture(SpecularMap, f_texcoord0).rgb;
|
||||
}
|
||||
|
||||
vec3 tintColor = vec3(1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user