PDA

View Full Version : How Mix Textures and drawing?



ncn213
08-29-2009, 12:48 AM
Hi all,
I have a texture that opaqiue the window and I drw some line and text on it. Now I want draw a scaled circle texture on the window. My circle color is red and background is white.
I want that scaled circle was on top of other drawing, but in points that circle texture is white (background) the main texture and lines be drawn.
I don't want that color of texture or line mixed.
How can I do it?

ZbuffeR
08-29-2009, 05:59 AM
Use an RGBA texture for the scaled circle, with alpha = 0.0 on background texels. Then either use alpha testing or alpha blending, depends on your use case.

For more details, please post beginner questions on the beginner forum.