Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想绘制一个比原来大 5 倍的纹理 2d,没有平滑。
画线:
spriteBatch.Draw(texture, new Vector2(0, 0), null, Color.White, 0, Vector2.Zero, 5f, SpriteEffects.None, 0);
结果是一个缩放的平滑图像。添加this.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;没有帮助。
this.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
你想要的是点纹理过滤。看这里。