summaryrefslogtreecommitdiff
path: root/resources/quad_fs.vert
diff options
context:
space:
mode:
author0undefined <oscar@nelin.dk>2026-03-11 06:51:35 +0000
committer0undefined <oscar@nelin.dk>2026-03-11 06:52:40 +0000
commitf1e3ffff689a53569405064f52e7c537e6d31031 (patch)
treecea91134d90a3623fd85f7ddb91d87c61c133eae /resources/quad_fs.vert
parenta0e862d97f78d581e5ee1ee84289236e805e8c0f (diff)
Draw suzanne and icosphere
Diffstat (limited to 'resources/quad_fs.vert')
-rw-r--r--resources/quad_fs.vert20
1 files changed, 20 insertions, 0 deletions
diff --git a/resources/quad_fs.vert b/resources/quad_fs.vert
new file mode 100644
index 0000000..1e00e98
--- /dev/null
+++ b/resources/quad_fs.vert
@@ -0,0 +1,20 @@
+#version 330 core
+
+layout(location = 0) in vec2 pos;
+layout(location = 1) in vec2 uv;
+
+out vec2 UV;
+
+uniform mat4 MVP;
+
+void main() {
+
+ gl_Position =
+ vec4( pos.x, pos.y, 0, 1);
+ UV = uv;
+ //vec4(pos.x, 1.0, pos.y, 1.0);
+
+ //fragColor.x = gl_Position.x;
+ //fragColor.y = gl_Position.y;
+ //fragColor.z = gl_Position.z;
+}