Is there a way to do an apply a rounded corner to arbitrary images in Godot? I know we can fake it by adding transparent images over the corners:
I know that we can create a panel
with a style box flat
, and make the corners of the panel rounded. But clipping the content of the panel doesn't clip the corners of the image inside the panel.
UPDATE: I am aware of a special shader script that curves the edges of square images. It only works for square images. I don't know enough about shaders to make it work for other image sizes. Here is what it looks like in practice on non square images.