From f291aabc4bff12d8eafc3428809719924442b368 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 9 Aug 2016 01:02:57 +0200 Subject: [PATCH] Fix shader compile error for objects without diffuse map --- files/shaders/objects_fragment.glsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/shaders/objects_fragment.glsl b/files/shaders/objects_fragment.glsl index b3a0150af..5a72b44b3 100644 --- a/files/shaders/objects_fragment.glsl +++ b/files/shaders/objects_fragment.glsl @@ -59,7 +59,9 @@ varying vec3 passNormal; void main() { +#if @diffuseMap vec2 adjustedDiffuseUV = diffuseMapUV; +#endif #if @normalMap vec4 normalTex = texture2D(normalMap, normalMapUV);