suppose i already output a rectangle to screen, but i wan to set a group of pixels within this rectangle to transparent, such that the rectangle appear as though it is being “eaten away”… how should i proceed?
For me, if your rectangle is textured :
Just add another texture with a mask (multitexturing).
If not, no idea.