Alpha problem

I have been working on something that uses an object like a writing board. I used an image that is transparent with an alpha channel over the texture of the object so it would appear that I was writing on the texture. My problem is that I need to be able to remove the pixels I places on the alpha map so that it is clear again. I have no clue on this issue.

Any ideas would be greatly appreciated.

Thank You
TWest

See Texture2D.GetPixels and Texture2D.SetPixels, and Apply().

Why is a raven like a writing board?

Hmm didn’t think you could get and set transparent pixels. That seems to work for the most part. Is there such a thing as a transparent color?

no there is no such thing. transperency is an own channel in the color though :slight_smile:

Um, you could set the alpha channel’s value to a certain value and then use an alpha test that not equals, which would make any pixels with that alpha value not be drawn, like a mask?