I’m trying to get a pixely effect when zooming (and in general really) into these tiles in LibGDX, but whenever I do, they blur around the edges. Is there any way to get rid of this effect?
http://www.badlogicgames.com/wordpress/?p=1403
You need to use a Nearest filter, not a linear one, which causes the blurring.
Such a simple answer. :cranky:
My filter was this :
sprite.getTexture().setFilter(TextureFilter.Nearest,
TextureFilter.Linear);
so I switched them and got the result I needed. I should have looked at the syntax closer:
sprite.getTexture().setFilter(TextureFilter.Linear,
TextureFilter.Nearest);
Thanks