summaryrefslogtreecommitdiff
path: root/resources/quad.vert
diff options
context:
space:
mode:
Diffstat (limited to 'resources/quad.vert')
-rw-r--r--resources/quad.vert18
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/quad.vert b/resources/quad.vert
new file mode 100644
index 0000000..4aaf59c
--- /dev/null
+++ b/resources/quad.vert
@@ -0,0 +1,18 @@
+#version 330 core
+
+layout(location = 0) in vec3 pos;
+
+out vec3 fragColor;
+
+uniform mat4 MVP;
+
+void main() {
+
+ gl_Position =
+ //MVP * vec4( pos.x, 1, pos.y, 1);
+ vec4(pos.x, 1.0, pos.y, 1.0);
+
+ fragColor.x = gl_Position.x;
+ fragColor.y = gl_Position.y;
+ fragColor.z = gl_Position.z;
+}