diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-11 13:05:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-11 13:05:49 +0300 |
commit | 41836760fa59abc74098aed7450b4858dc288e56 (patch) | |
tree | 865e87f4adae8301f8d09c7f4f89ac1671054477 /data | |
parent | e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b (diff) | |
download | manaverse-41836760fa59abc74098aed7450b4858dc288e56.tar.gz manaverse-41836760fa59abc74098aed7450b4858dc288e56.tar.bz2 manaverse-41836760fa59abc74098aed7450b4858dc288e56.tar.xz manaverse-41836760fa59abc74098aed7450b4858dc288e56.zip |
In modernopengl add alpha for textures.
Diffstat (limited to 'data')
-rw-r--r-- | data/graphics/shaders/texture_frag.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/graphics/shaders/texture_frag.glsl b/data/graphics/shaders/texture_frag.glsl index 7eac7771e..db6c7176f 100644 --- a/data/graphics/shaders/texture_frag.glsl +++ b/data/graphics/shaders/texture_frag.glsl @@ -2,7 +2,8 @@ in vec2 Texcoord; out vec4 outColor; uniform sampler2D tex; +uniform float color; void main() { - outColor = texture(tex, Texcoord); + outColor = texture(tex, Texcoord) * vec4(1.0, 1.0, 1.0, color); } |