diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-09 12:59:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-09 12:59:20 +0300 |
commit | 5fe5d3de3c570734d824afac4992a0d00386dbea (patch) | |
tree | a8a44914014951142d80c4529dcae64c513dc0f1 /data/graphics/shaders/texture_frag.glsl | |
parent | 49aba83fa6f3393214919166c42fb55c5a9a7796 (diff) | |
download | plus-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.glsl | 8 |
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); +} |