aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanila Shutov <dcbrwn2@gmail.com>2020-03-17 00:57:46 +0300
committerGitHub <noreply@github.com>2020-03-16 22:57:46 +0100
commitca646487f22223ef676d928ba9345e41cff63e43 (patch)
treebb680aa240471060af0090a241b447443051f9c5
parent5a31d56c9f9546838b602d0226e341dd30030edf (diff)
downloadminetest-ca646487f22223ef676d928ba9345e41cff63e43.tar.gz
minetest-ca646487f22223ef676d928ba9345e41cff63e43.tar.bz2
minetest-ca646487f22223ef676d928ba9345e41cff63e43.zip
Transform texture UVs with provided tex. matrix (#9515)
fixes #9481
-rw-r--r--client/shaders/object_shader/opengl_vertex.glsl2
1 files changed, 1 insertions, 1 deletions
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;