I have a sprite that I'm trying to scale up in XNA, but XNA is applying some sort of texture filtering that smooths it and makes it look ugly. I'd like it to just do pixel doubling instead of interpolation. How would I accomplish that?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
You need to set the sampler state. The default for SpriteBatch is Choose one of the |
|||
|
|
|
Just in case someone else is wondering how to do this outside of a sprite batch, you would do this just before rendering your primitives:
This has to be done on every frame, if there are other items in your rendering pipeline that would change this value (like a |
|||||
|