aboutsummaryrefslogtreecommitdiff
path: root/resources/object.vert
diff options
context:
space:
mode:
Diffstat (limited to 'resources/object.vert')
-rw-r--r--resources/object.vert21
1 files changed, 21 insertions, 0 deletions
diff --git a/resources/object.vert b/resources/object.vert
new file mode 100644
index 0000000..09df07e
--- /dev/null
+++ b/resources/object.vert
@@ -0,0 +1,21 @@
+#version 330 core
+
+layout(location = 0) in vec2 pos;
+layout(location = 1) in vec2 uv;
+
+//out vec2 UV;
+out vec4 fragColor;
+
+uniform mat4 MVP;
+
+void main() {
+
+ //gl_Position =
+ //vec4( pos.x, pos.y, 0, 1);
+ //UV = uv;
+
+ fragColor.x = gl_Position.x;
+ fragColor.y = gl_Position.y;
+ fragColor.z = gl_Position.z;
+ fragColor.w = 1;
+}