diff options
Diffstat (limited to 'source/shaders/cq_batched.vs.glsl')
-rw-r--r-- | source/shaders/cq_batched.vs.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/shaders/cq_batched.vs.glsl b/source/shaders/cq_batched.vs.glsl index 84180e9..947b45a 100644 --- a/source/shaders/cq_batched.vs.glsl +++ b/source/shaders/cq_batched.vs.glsl @@ -3,8 +3,10 @@ layout(location=0) in vec4 aPos; layout(location=1) in vec3 aColor; out vec4 vertexColor; +uniform mat4 View; +uniform mat4 Projection; void main() { - gl_Position = aPos; + gl_Position = Projection * View * aPos; vertexColor = vec4(aColor, 1.0); } |