0

If I stretch a texture to a destination rectangle, and I have a simple 1X2 sprite (windows forms button background) XNA stretches the sprite very fuzzy, I get a gradient instead of the bottom part dark and the top one light. Is there something like a stretchmode so I get the texture stretched as I created it in Photoshop?

Thanks

Basaa
  • 151
  • 2
  • 13

1 Answers1

1

As per this question:

GraphicsDevice.SamplerStates[0] = SamplerState.PointWrap;
Community
  • 1
  • 1
Kendall Frey
  • 43,130
  • 20
  • 110
  • 148