summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-10 17:23:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-10 17:23:52 +0100
commitb17c955193cbcc0bc774cdf09022b40abf80f768 (patch)
tree3f96890831b6103f3212898fadeb60101ff746ac /shaders
parent169662a775221a5bb227e1ce5746f7418e1e692c (diff)
shader: add discard on alpha == 0
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.frag2
1 files changed, 2 insertions, 0 deletions
diff --git a/shaders/tile.frag b/shaders/tile.frag
index a233825e..9e05d677 100644
--- a/shaders/tile.frag
+++ b/shaders/tile.frag
@@ -9,4 +9,6 @@ out vec4 color;
void main() {
color = texture(sampler, frag_texcoords) * tint;
+ if (color.a == 0)
+ discard;
}