Fix shader compile error for objects without diffuse map

coverity_scan^2
scrawl 8 years ago
parent 5190275b37
commit f291aabc4b

@ -59,7 +59,9 @@ varying vec3 passNormal;
void main()
{
#if @diffuseMap
vec2 adjustedDiffuseUV = diffuseMapUV;
#endif
#if @normalMap
vec4 normalTex = texture2D(normalMap, normalMapUV);

Loading…
Cancel
Save