From 97cb4048225969863365d3520657d64adf7040e3 Mon Sep 17 00:00:00 2001 From: Dmitry Kostenko Date: Fri, 11 Feb 2022 23:00:41 +0100 Subject: [PATCH] Apply texture matrix when rendering shadowmap Fixes shadows of animated sprite entities --- client/shaders/shadow_shaders/pass1_vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/shaders/shadow_shaders/pass1_vertex.glsl b/client/shaders/shadow_shaders/pass1_vertex.glsl index a6d8b3db8..feee9467f 100644 --- a/client/shaders/shadow_shaders/pass1_vertex.glsl +++ b/client/shaders/shadow_shaders/pass1_vertex.glsl @@ -22,5 +22,5 @@ void main() tPos = getPerspectiveFactor(pos); gl_Position = vec4(tPos.xyz, 1.0); - gl_TexCoord[0].st = gl_MultiTexCoord0.st; + gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; }