diff options
author | talha <sarcxd@gmail.com> | 2024-12-11 00:53:05 +0500 |
---|---|---|
committer | talha <sarcxd@gmail.com> | 2024-12-11 00:53:05 +0500 |
commit | 9022d6c1fa64689ab9203d967a8cd31b406155da (patch) | |
tree | 5a85440c894545fc0e8dd823b6cc626c2be01fbc /source/shaders | |
parent | 60085c01f190c01adaf24b6f337e2528d1de23b7 (diff) |
Added batch rendering (however basic it might be)
Diffstat (limited to 'source/shaders')
-rw-r--r-- | source/shaders/cq_batched.fs.glsl | 9 | ||||
-rw-r--r-- | source/shaders/cq_batched.vs.glsl | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/source/shaders/cq_batched.fs.glsl b/source/shaders/cq_batched.fs.glsl new file mode 100644 index 0000000..7f0467a --- /dev/null +++ b/source/shaders/cq_batched.fs.glsl @@ -0,0 +1,9 @@ +#version 330 core + +in vec4 vertexColor; +out vec4 FragColor; + +void main() { + FragColor = vertexColor; +} + 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); +} |