summaryrefslogtreecommitdiff
path: root/data/graphics/shaders/texture_frag.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_frag.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_frag.glsl')
-rw-r--r--data/graphics/shaders/texture_frag.glsl8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/graphics/shaders/texture_frag.glsl b/data/graphics/shaders/texture_frag.glsl
new file mode 100644
index 000000000..7eac7771e
--- /dev/null
+++ b/data/graphics/shaders/texture_frag.glsl
@@ -0,0 +1,8 @@
+#version 150 core
+in vec2 Texcoord;
+out vec4 outColor;
+uniform sampler2D tex;
+void main()
+{
+ outColor = texture(tex, Texcoord);
+}