It’s a stencil masking post effect. I could use the stencil buffer, but I need alpha blending to achieve the desired effect. Alpha clipping (alphatest/cutout) would be an option, but I don’t know if it’s possible in Defold; it’s also heavy for mobile devices anyways.
The game is running 60 fps on a mid range phone and 32 fps on a cheap phone (that runs 60 fps with the default built-in render script). I guess changing the approach to achieve the same results with better performance is not worth the effort for now.
Thank you all for your help.
2 Likes