Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.