summaryrefslogtreecommitdiff
path: root/shaders/vert_quad.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/vert_quad.glsl')
-rw-r--r--shaders/vert_quad.glsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/shaders/vert_quad.glsl b/shaders/vert_quad.glsl
new file mode 100644
index 0000000..611ae61
--- /dev/null
+++ b/shaders/vert_quad.glsl
@@ -0,0 +1,23 @@
+#version 330 core
+
+// --------------------------------------------------------------------------------
+// Vertex inputs
+// --------------------------------------------------------------------------------
+layout (location = 0) in vec2 v_in_p;
+layout (location = 1) in vec2 v_in_t;
+
+// --------------------------------------------------------------------------------
+// Vertex outputs
+// --------------------------------------------------------------------------------
+out vec2 v_p;
+out vec2 v_t;
+
+// --------------------------------------------------------------------------------
+// Main
+// --------------------------------------------------------------------------------
+void main()
+{
+ v_p = v_in_p;
+ v_t = v_in_t;
+ gl_Position = vec4(v_p.x, v_p.y, -1.0f, 1.0f);
+}