summaryrefslogtreecommitdiff
path: root/shaders/quad.vs.glsl
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-11-27 13:18:57 +0500
committertalha <talha@talhaamir.xyz>2025-11-27 13:18:57 +0500
commit0b3d69976819219e71350b6a988d1704fd5f0746 (patch)
tree3511564cb2cb3b10697dc997260479a14540d706 /shaders/quad.vs.glsl
Added files to git.HEADmain
Current State: - hot reloading - math library (calcify) - triangle rendering (unbatched) - orthographic projection (no camera) - layer isolation setup (platform vs game)
Diffstat (limited to 'shaders/quad.vs.glsl')
-rw-r--r--shaders/quad.vs.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/shaders/quad.vs.glsl b/shaders/quad.vs.glsl
new file mode 100644
index 0000000..c26dcf9
--- /dev/null
+++ b/shaders/quad.vs.glsl
@@ -0,0 +1,9 @@
+#version 330 core
+layout(location=0) in vec3 aPos;
+
+uniform mat4 Model;
+uniform mat4 Projection;
+
+void main() {
+ gl_Position = Projection * Model * vec4(aPos, 1.0);
+}