'Texture is showing artifact (bottom wraps to top) when using transparency in Godot

When I add a png with transparency as the texture for a plane, I get these artifacts where the pixels wrap around to the opposite edge. Here, the bottom edge has non transparent pixels, so the top edge is showing some of the pixels wrapped around. Is there a way to get rid of this?

I'm using Godot 3.4.4, GLES2.

grass texture



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source