Hi, I have no idea if it is already implemented, but in the case it isn't, I would suggest Windowing
It is used in quite a lot of Super Nintendo games, such as Super Mario World for the keyhole effect, or Super Metroid with the X-Ray glasses.
You also have this video that makes a pretty unique use of this technique :
I also found a video that explains the effect pretty well if you are interested :
https://youtu.be/uRjf8ZP6rs8?t=243
I have no idea if that can drain performances, but I think the basic principle is you don't display a layer when the pixel you want to draw is outside of a 2 X-values interval of the screen, and you can make more complex shapes (such as a circle for example) by changing those X values between scanlines.
What do you think about this suggestion?
It is used in quite a lot of Super Nintendo games, such as Super Mario World for the keyhole effect, or Super Metroid with the X-Ray glasses.
You also have this video that makes a pretty unique use of this technique :
I also found a video that explains the effect pretty well if you are interested :
https://youtu.be/uRjf8ZP6rs8?t=243
I have no idea if that can drain performances, but I think the basic principle is you don't display a layer when the pixel you want to draw is outside of a 2 X-values interval of the screen, and you can make more complex shapes (such as a circle for example) by changing those X values between scanlines.
What do you think about this suggestion?