Fix ShaderVG transformation matrices
See SG commit 58bcab3a.
This commit is contained in:
parent
3904ec4198
commit
dd97ee58db
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue