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