aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/world.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/world.frag')
-rw-r--r--shaders/world.frag7
1 files changed, 4 insertions, 3 deletions
diff --git a/shaders/world.frag b/shaders/world.frag
index c45b4a0..80af175 100644
--- a/shaders/world.frag
+++ b/shaders/world.frag
@@ -1,10 +1,11 @@
uniform sampler2D sampler;
varying vec2 texCoord;
+varying vec4 color;
void main(){
- vec4 color = texture2D(sampler, vec2(texCoord.x, 1-texCoord.y));
- if(color.a <= .1)
+ vec4 pixTex = texture2D(sampler, vec2(texCoord.x, 1-texCoord.y));
+ if(pixTex.a <= .1)
discard;
- gl_FragColor = color;
+ gl_FragColor = pixTex * color;
}