更新时间:2023-01-26 16:53:17
我遇到了同样的问题,而且修复非常简单.创建Texture
时,需要指定它使用mipmap.
I had this same problem, and the fix turned out to be insanely simple. When you create a Texture
, you need to specify that it uses mipmaps.
您要做的就是像这样将第二个参数传递给Texture
构造函数:
All you have to do is pass a second parameter to the Texture
constructor like this:
Texture myTexture = new Texture(Gdx.files.internal("myImage.png"), true);
You can view all the Texture
class constructors in the API docs here: http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/Texture.html