Hey all. Is it possible to clear an irregular portion of a RenderTarget?
I have drawn a small blue triangle (using a shape) to the RT. I now want to clear the area of the RT only where the triangle is (so I can see layers under it) but I don't seem to be able to figure it out.
If I draw the triangle using a black pen, then there is a black triangle on the RT.
Any ideas anyone?
Comments
Shapes can't use any other blendmodes except SOLID, NONE, and TEXTURE.
I am thinking this is a limitation of RenderTargets maybe.
maybe you are confusing shape fill style and blending modes, ok it's a square, not a triangle
edit: sorry, wrong attachment: this one uses rt
Since I'm using shapes and other trickery I think my only option now is to recode everything and make each sector into a sprite. That way I can just make them visible, invisible, or tint them how they need to be.