Anti-aliasing filled shapes in libgdx

java, libgdx, opengl

Solution

maybe this link will help: MULTI SAMPLING ANTI-ALASING IN LIBGDX ON ANDROID

in general you have to enable multisampling to have edges of filled shapes smooth.

http://www.opengl.org/wiki/Multisampling

Problem

I've been looking everywhere for a way to anti-alias edges of filled shapes drawn with `ShapeRenderer` (ie. `ShapeType.Filled`) but can't find anything about this. Lines works well with `Gdx.gl.glEnable(GL10.GL_LINE_SMOOTH)` but nothing I've tried works with filled shapes. So, does anyone have any suggestions?

Original source