From 752829b7eddcb4fc841fe94a0a38d430a8002834 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 16 Dec 2013 02:12:56 +0000 Subject: [PATCH] gpu: shader fixes for the Web version. --- src/gpu/tile.lolfx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu/tile.lolfx b/src/gpu/tile.lolfx index bdae6389..1fe04467 100644 --- a/src/gpu/tile.lolfx +++ b/src/gpu/tile.lolfx @@ -32,6 +32,8 @@ varying vec2 pass_TexCoord; void main() { vec4 col = texture2D(in_Texture, pass_TexCoord); + if (col.a == 0.0) + discard; gl_FragColor = col; }