summaryrefslogtreecommitdiff
path: root/source/shaders
diff options
context:
space:
mode:
authortalha <sarcxd@gmail.com>2024-12-14 11:03:37 +0500
committertalha <sarcxd@gmail.com>2024-12-14 11:03:37 +0500
commit05f82730e6d74ab604b02504cc928e764542a8c2 (patch)
tree836153cc89ed80b20a4183986907e1ab48becc72 /source/shaders
parent9022d6c1fa64689ab9203d967a8cd31b406155da (diff)
Reworked batch renderer, Updated math.hmaster
Diffstat (limited to 'source/shaders')
-rw-r--r--source/shaders/cq_batched.vs.glsl4
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);
}