1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Fix specular map issues causing a texture overlayif unused.

This commit is contained in:
KillzXGaming 2019-06-05 17:44:23 -04:00
parent 41fcaa1a73
commit f4f946fce5
4 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -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);