From 414c19f717e9e75d46cbd59d7130254c8dd10cd4 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 1 Mar 2016 18:40:18 +0100 Subject: [PATCH] Fix detailMapUV bug --- files/shaders/objects_vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/shaders/objects_vertex.glsl b/files/shaders/objects_vertex.glsl index b1004aad3..297941172 100644 --- a/files/shaders/objects_vertex.glsl +++ b/files/shaders/objects_vertex.glsl @@ -68,7 +68,7 @@ void main(void) #endif #if @detailMap - detailMapUV = (gl_TextureMatrix[@detailMap] * gl_MultiTexCoord@detailMap).xy; + detailMapUV = (gl_TextureMatrix[@detailMapUV] * gl_MultiTexCoord@detailMapUV).xy; #endif #if @emissiveMap