diff --git a/gui/shaders/canvas-pipeline.vert b/gui/shaders/canvas-pipeline.vert index 5c0937daf..4ee82bee2 100644 --- a/gui/shaders/canvas-pipeline.vert +++ b/gui/shaders/canvas-pipeline.vert @@ -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; diff --git a/gui/shaders/canvas-user-default.vert b/gui/shaders/canvas-user-default.vert index 763e640d0..03c2d6d98 100644 --- a/gui/shaders/canvas-user-default.vert +++ b/gui/shaders/canvas-user-default.vert @@ -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; }