1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Apply texture matrix when rendering shadowmap

Fixes shadows of animated sprite entities
This commit is contained in:
Dmitry Kostenko
2022-02-11 23:00:41 +01:00
committed by x2048
parent d2a3bed240
commit 97cb404822

View File

@@ -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;
}