1
0
Fork 0
fgdata/gui/shaders/canvas-pipeline.vert

19 lines
319 B
GLSL
Raw Normal View History

// -*-C++-*-
2023-03-08 10:27:55 +00:00
#version 330 core
in vec2 pos;
in vec2 textureUV;
uniform mat4 sh_Model;
uniform mat4 sh_Ortho;
uniform mat3 paintInverted;
out vec2 texImageCoord;
out vec2 paintCoord;
2023-03-08 10:27:55 +00:00
void main()
{
gl_Position = vec4(pos, 0, 1);
texImageCoord = textureUV;
paintCoord = (paintInverted * vec3(pos, 1)).xy;
}