ShaderVG: Fix missing transformations
This commit is contained in:
parent
ca261d2652
commit
430fc52f4a
2 changed files with 2 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
// -*-C++-*-
|
||||
#version 330 core
|
||||
|
||||
#define PAINT_TYPE_COLOR 0x1B00
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue