1
0
Fork 0

Introduce a view-matrix for ShaderVG

This commit is contained in:
Erik Hofman 2023-03-04 14:11:18 +01:00
parent a90b331ce1
commit cfef45c93b
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
/*** Input *******************/
in vec2 pos;
in vec2 textureUV;
uniform mat4 sh_View;
uniform mat4 sh_Model;
uniform mat4 sh_Ortho;
uniform mat3 paintInverted;

View file

@ -1,6 +1,6 @@
// -*-C++-*-
void shMain() {
gl_Position = sh_Ortho * sh_Model * sh_Vertex;
gl_Position = sh_Ortho * sh_View * sh_Model * sh_Vertex;
}