diff options
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); +} |