1
0
Fork 0
fgdata/Shaders/ShaderVG/pipeline.vert
Fernando García Liñán dd97ee58db Fix ShaderVG transformation matrices
See SG commit 58bcab3a.
2024-02-08 19:59:21 +01:00

21 lines
360 B
GLSL

#version 330 core
out vec2 texImageCoord;
out vec2 paintCoord;
in vec2 pos;
in vec2 textureUV;
// UNUSED
// uniform mat4 sh_Model;
// uniform mat4 sh_Ortho;
uniform mat4 sh_Mvp;
uniform mat3 paintInverted;
void main()
{
gl_Position = sh_Mvp * vec4(pos, 0.0, 1.0);
texImageCoord = textureUV;
paintCoord = (paintInverted * vec3(pos, 1.0)).xy;
}