1
0
Fork 0

Fix ShaderVG transformation matrices

See SG commit 58bcab3a.
This commit is contained in:
Fernando García Liñán 2024-02-08 19:57:51 +01:00
parent 3904ec4198
commit dd97ee58db

View file

@ -6,13 +6,16 @@ out vec2 paintCoord;
in vec2 pos;
in vec2 textureUV;
uniform mat4 sh_Model;
uniform mat4 sh_Ortho;
// UNUSED
// uniform mat4 sh_Model;
// uniform mat4 sh_Ortho;
uniform mat4 sh_Mvp;
uniform mat3 paintInverted;
void main()
{
gl_Position = sh_Ortho * sh_Model * vec4(pos, 0.0, 1.0);
gl_Position = sh_Mvp * vec4(pos, 0.0, 1.0);
texImageCoord = textureUV;
paintCoord = (paintInverted * vec3(pos, 1.0)).xy;
}