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.
如果我将纹理拉伸到目标矩形,并且我有一个简单的 1X2 精灵(窗口窗体按钮背景),XNA 会非常模糊地拉伸精灵,我会得到一个渐变,而不是底部深色和顶部浅色。有没有类似拉伸模式的东西,所以我在 Photoshop 中创建纹理时会拉伸它?
谢谢
根据这个问题:
GraphicsDevice.SamplerStates[0] = SamplerState.PointWrap;