Turn Texture Blending off in XNA

Posted by George Johnston on Stack Overflow See other posts from Stack Overflow or by George Johnston
Published on 2010-04-09T00:17:42Z Indexed on 2010/04/09 0:23 UTC
Read the original article Hit count: 477

Filed under:
|

I am currently drawing single colored pixels to my texture in XNA. However, there seems to be blending occuring, as the color I draw on the screen gets blended with my background color. How can I turn this off so that the color I draw is only the color I draw?

this.spriteBatch.Draw(texture, new Rectangle(x, y, 1, 1), [My Color]);

© Stack Overflow or respective owner

Related posts about XNA

Related posts about c#