diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-10 17:23:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-10 17:23:52 +0100 |
commit | b17c955193cbcc0bc774cdf09022b40abf80f768 (patch) | |
tree | 3f96890831b6103f3212898fadeb60101ff746ac | |
parent | 169662a775221a5bb227e1ce5746f7418e1e692c (diff) |
shader: add discard on alpha == 0
-rw-r--r-- | shaders/tile.frag | 2 |
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; } |