Introduce a view-matrix for ShaderVG
This commit is contained in:
parent
a90b331ce1
commit
cfef45c93b
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
/*** Input *******************/
|
/*** Input *******************/
|
||||||
in vec2 pos;
|
in vec2 pos;
|
||||||
in vec2 textureUV;
|
in vec2 textureUV;
|
||||||
|
uniform mat4 sh_View;
|
||||||
uniform mat4 sh_Model;
|
uniform mat4 sh_Model;
|
||||||
uniform mat4 sh_Ortho;
|
uniform mat4 sh_Ortho;
|
||||||
uniform mat3 paintInverted;
|
uniform mat3 paintInverted;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
void shMain() {
|
void shMain() {
|
||||||
|
|
||||||
gl_Position = sh_Ortho * sh_Model * sh_Vertex;
|
gl_Position = sh_Ortho * sh_View * sh_Model * sh_Vertex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue