1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix texture matrix handling in our shaders

This commit is contained in:
sfan5 2024-09-06 10:32:05 +02:00
parent 9e5d6bc162
commit e90ef85e7d
3 changed files with 9 additions and 5 deletions

View file

@ -91,7 +91,7 @@ float directional_ambient(vec3 normal)
void main(void)
{
varTexCoord = (mTexture * inTexCoord0).st;
varTexCoord = (mTexture * vec4(inTexCoord0.xy, 1.0, 1.0)).st;
gl_Position = mWorldViewProj * inVertexPosition;
vPosition = gl_Position.xyz;