MipMapLinearLinear in Libgdx-Android -
i trying set filter texture have smooth image. working linear or nearest. when tried mipmap getting black screen only. please allow me know how utilize mipmap in libgdx.
background = new texture(gdx.files.internal("data/gamescreen.png")); background.setfilter(texturefilter.mipmaplinearlinear, texturefilter.mipmaplinearlinear);
first of all, should utilize special texture constructor if want utilize mipmap filtering.
second, can't utilize texturefilter.mipmaplinearlinear
magnification filter. don't create sense.
so, in case code should be:
background = new texture(gdx.files.internal("data/gamescreen.png"), true); background.setfilter(texturefilter.mipmaplinearlinear, texturefilter.linear);
android libgdx
No comments:
Post a Comment