From ca646487f22223ef676d928ba9345e41cff63e43 Mon Sep 17 00:00:00 2001 From: Danila Shutov Date: Tue, 17 Mar 2020 00:57:46 +0300 Subject: [PATCH] Transform texture UVs with provided tex. matrix (#9515) fixes #9481 --- client/shaders/object_shader/opengl_vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/shaders/object_shader/opengl_vertex.glsl b/client/shaders/object_shader/opengl_vertex.glsl index 99b9b2709..488089392 100644 --- a/client/shaders/object_shader/opengl_vertex.glsl +++ b/client/shaders/object_shader/opengl_vertex.glsl @@ -27,7 +27,7 @@ float directional_ambient(vec3 normal) void main(void) { - gl_TexCoord[0] = gl_MultiTexCoord0; + gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; gl_Position = mWorldViewProj * gl_Vertex; vPosition = gl_Position.xyz;