From 05f82730e6d74ab604b02504cc928e764542a8c2 Mon Sep 17 00:00:00 2001 From: talha Date: Sat, 14 Dec 2024 11:03:37 +0500 Subject: Reworked batch renderer, Updated math.h --- source/shaders/cq_batched.vs.glsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/shaders/cq_batched.vs.glsl') 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); } -- cgit v1.2.3