summaryrefslogtreecommitdiff
path: root/data/graphics/shaders/texture_vertex.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'data/graphics/shaders/texture_vertex.glsl')
-rw-r--r--data/graphics/shaders/texture_vertex.glsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/graphics/shaders/texture_vertex.glsl b/data/graphics/shaders/texture_vertex.glsl
new file mode 100644
index 000000000..e6c1bf359
--- /dev/null
+++ b/data/graphics/shaders/texture_vertex.glsl
@@ -0,0 +1,10 @@
+#version 150 core
+in vec2 simplePos;
+in vec2 texcoord;
+out vec2 Texcoord;
+uniform vec2 screen;
+void main()
+{
+ Texcoord = texcoord;
+ gl_Position = vec4(simplePos.x / screen.x - 1, 1 - simplePos.y / screen.y, 0.0, 1.0);
+}