aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/new.frag
diff options
context:
space:
mode:
authorAndy <drumsetmonkey@gmail.com>2016-10-24 07:55:41 -0400
committerAndy <drumsetmonkey@gmail.com>2016-10-24 07:55:41 -0400
commitd7884127950260dd0f1b24aee0bfe64d847f990c (patch)
tree067751efc3b0e3d7ec9111b4764170bd69bacec7 /shaders/new.frag
parent2dd2f42ff1c683331e7192b4bfb832e41543d2df (diff)
Better sprites
Diffstat (limited to 'shaders/new.frag')
-rw-r--r--shaders/new.frag5
1 files changed, 4 insertions, 1 deletions
diff --git a/shaders/new.frag b/shaders/new.frag
index fa8a260..3537e26 100644
--- a/shaders/new.frag
+++ b/shaders/new.frag
@@ -5,5 +5,8 @@ varying vec4 color;
void main(){
vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y));
- gl_FragColor = pixelColor * color;
+ //TODO
+ if (pixelColor.w != 1.0f)
+ discard;
+ gl_FragColor = pixelColor * color;
}