From: Danila Shutov Date: Mon, 16 Mar 2020 21:57:46 +0000 (+0300) Subject: Transform texture UVs with provided tex. matrix (#9515) X-Git-Tag: 5.2.0~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ca646487f22223ef676d928ba9345e41cff63e43;p=oweals%2Fminetest.git Transform texture UVs with provided tex. matrix (#9515) fixes #9481 --- 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;