1
0
Fork 0

ShaderVG: Fix missing transformations

This commit is contained in:
Fernando García Liñán 2024-01-23 19:23:10 +01:00
parent ca261d2652
commit 430fc52f4a
2 changed files with 2 additions and 4 deletions

View file

@ -1,4 +1,3 @@
// -*-C++-*-
#version 330 core
#define PAINT_TYPE_COLOR 0x1B00

View file

@ -1,4 +1,3 @@
// -*-C++-*-
#version 330 core
out vec2 texImageCoord;
@ -13,7 +12,7 @@ uniform mat3 paintInverted;
void main()
{
gl_Position = vec4(pos, 0, 1);
gl_Position = sh_Ortho * sh_Model * vec4(pos, 0.0, 1.0);
texImageCoord = textureUV;
paintCoord = (paintInverted * vec3(pos, 1)).xy;
paintCoord = (paintInverted * vec3(pos, 1.0)).xy;
}