udiz5w
Last Updated: February 25, 2016
·
2.398K
· drabiter
Dsc 0105 0

[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.

Say Thanks
Respond
Awesome Job

20838750 ca12 11e7 8395 3d07316c018d
Overijssel,Amsterdam, Arnhem
·
Overijssel, Amsterdam, Arnhem
·
Full Time