From 9022d6c1fa64689ab9203d967a8cd31b406155da Mon Sep 17 00:00:00 2001 From: talha Date: Wed, 11 Dec 2024 00:53:05 +0500 Subject: Added batch rendering (however basic it might be) --- source/shaders/cq_batched.vs.glsl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 source/shaders/cq_batched.vs.glsl (limited to 'source/shaders/cq_batched.vs.glsl') diff --git a/source/shaders/cq_batched.vs.glsl b/source/shaders/cq_batched.vs.glsl new file mode 100644 index 0000000..84180e9 --- /dev/null +++ b/source/shaders/cq_batched.vs.glsl @@ -0,0 +1,10 @@ +#version 330 core +layout(location=0) in vec4 aPos; +layout(location=1) in vec3 aColor; + +out vec4 vertexColor; + +void main() { + gl_Position = aPos; + vertexColor = vec4(aColor, 1.0); +} -- cgit v1.2.3