summaryrefslogtreecommitdiff
path: root/data/graphics/shaders/texture_vertex.glsl
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-09 12:59:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-09 12:59:20 +0300
commit5fe5d3de3c570734d824afac4992a0d00386dbea (patch)
treea8a44914014951142d80c4529dcae64c513dc0f1 /data/graphics/shaders/texture_vertex.glsl
parent49aba83fa6f3393214919166c42fb55c5a9a7796 (diff)
downloadplus-5fe5d3de3c570734d824afac4992a0d00386dbea.tar.gz
plus-5fe5d3de3c570734d824afac4992a0d00386dbea.tar.bz2
plus-5fe5d3de3c570734d824afac4992a0d00386dbea.tar.xz
plus-5fe5d3de3c570734d824afac4992a0d00386dbea.zip
Add shaders for drawing textures.
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);
+}