1
\$\begingroup\$

I'm using FillViewport and OrthographicCamera. LibGDX is scaling my images rather badly - jagged edges, visible pixels. How can I change the scaling method?

by the way, I'm pretty sure the issue isn't my images. I've scaled them using imaging software and they look a lot better than when LibGDX scales them.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

The issue is probably because of Texture Filters. And it's not LibGdx problem either, but OpenGL's.

You can set filters for Libgdx textures using setFilter() method. For eg., try setting the filter to:

yourTexture.setFilter(TextureFilter.MipMapLinearNearest,TextureFilter.Nearest);

Here's the detailed explanation written by Mario himself.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .