PNG files are great to work with in the game, they have a small file size and support an alpha channel.
JPG files have small file size rather than PNG files. But when using JPG files, they don't support an alpha channel, so you will see that we still have our black background from the image we are using.
To remove the background from an image, we need to load the alpha texture via the custom filter to a main image.
So we need to require two images.
This is exactly what we want (alpha texture, image that filled a white color) :
Let's add the filter that can use an alpha texture to main sprite and see how it looks.
This is exactly what we want :
it passes vFilterCoord into our filter, then we know that we still have one problem that the destination coordinate is a little weird.
This guide requires the latest ETC1Filter plugin, which is available at https://github.com/biud436/MV/raw/master/RS_ETC1Filter.js, so make sure that this is installed first.