treesummaryrefslogcommitdiff
path: root/shaders/fbo_vert.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/fbo_vert.glsl')
-rw-r--r--shaders/fbo_vert.glsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/shaders/fbo_vert.glsl b/shaders/fbo_vert.glsl
new file mode 100644
index 0000000..fb80df5
--- /dev/null
+++ b/shaders/fbo_vert.glsl
@@ -0,0 +1,11 @@
+#version 330 core
+layout (location = 0) in vec2 aPos;
+layout (location = 1) in vec2 aTexCoords;
+
+out vec2 TexCoords;
+
+void main()
+{
+ gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0);
+ TexCoords = aTexCoords;
+}