From e845c576d4c9993c7e5cae8932dc2818f50eaec0 Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 17 Feb 2016 02:46:47 +0100 Subject: [PATCH] Use the texture matrix --- 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 fadbd9898..7ef2f6aa3 100644 --- a/files/shaders/objects_vertex.glsl +++ b/files/shaders/objects_vertex.glsl @@ -51,7 +51,7 @@ void main(void) vec3 viewNormal = normalize((gl_NormalMatrix * gl_Normal).xyz); #if @diffuseMap - diffuseMapUV = gl_MultiTexCoord@diffuseMapUV.xy; + diffuseMapUV = (gl_TextureMatrix[@diffuseMapUV] * gl_MultiTexCoord@diffuseMapUV).xy; #endif lighting = doLighting(viewPos.xyz, viewNormal, gl_Color.xyz);