1
我發現了在背景上繪製不透明前景紋理的問題。前景按鈕紋理以某種方式與背景混合,您可以看到頂部按鈕和最低按鈕之間的區別。最下面的按鈕比頂部按鈕稍亮一些。XNA 4.0:取決於背景顏色的不需要的紋理混合
button texture is depended on backgorund color
我成立了遊戲製作的圖形是這樣的:
// Set up graphics
GraphicsDeviceManager graphics = new GraphicsDeviceManager(this);
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 480;
graphics.SynchronizeWithVerticalRetrace = true;
// antialiasing
graphics.PreferMultiSampling = true;
graphics.ApplyChanges();
而且使用與Color.White參數到處空參數列表 「spriteBatch.Begin();」呼叫沒有任何混合。