Last Updated: February 25, 2016
·
3.152K
· drabiter

[LibGDX] Draw transparent shapes

Before ShapeRenderer#begin,

Gdx.gl.glEnable(GL10.GL_BLEND);
Gdx.gl.glBlendFunc(GL10.GL_SRC_ALPHA,GL10.GL_ONE_MINUS_SRC_ALPHA);
//start draw
Gdx.gl.glDisable(GL10.GL_BLEND);

Disable it after ShapeRenderer#end.