1

我发现了在背景上绘制不透明前景纹理的问题。前景按钮纹理以某种方式与背景混合,您可以看到顶部按钮和最低按钮之间的差异。最低的按钮比顶部的按钮轻一点。

按钮纹理取决于背景颜色

我在游戏创建中这样设置图形:

        // 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();” 调用没有任何混合。

4

1 回答 1

0

The colors are the same, it just appears that they aren't :)

Here, i copy pasted the bottom part of the image next to the top part:

enter image description here

It is an optical illusion called simultaneous brightness contrast.

于 2012-04-22T13:56:36.490 回答