'Nearest Neighbor' zoom

后端 未结 3 1479
小蘑菇
小蘑菇 2020-12-28 18:07

When I draw a stretched Texture2D, the pixels receive a Blur-like effect.

I want to use \'pixelated\' graphics in my game and would like to know how to

3条回答
  •  时光说笑
    2020-12-28 18:45

    You need to make sure your x,y co-ordinates are integer values. Fractional co-ordinates or dimensions result in anti-aliasing being applied to simulate "fractional" pixel offsets.

    Hence the blurring.

提交回复
热议问题