Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to paint texture with white color? Example what I mean: enter image description here

SpriteBatch.setColor changes tint only.

share|improve this question
A simple shader should be enough. – luiscubal Feb 4 '13 at 13:39
If you want to do this permanently, just write a for-loop over all pixels and if Alpha>0 then set Red, Green and Blue to 255. – Ivan Kuckir Feb 4 '13 at 18:14

As indicated above, simply implementing a pixel shader to change the color would be sufficient. Other than that, you could swap out textures on the fly. That is a bigger performance hit though, by far.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.