New answers tagged transparency
0
I found that ModelBatch.begin(...) will disable Blending by calling Gdx.gl.glDisable(GL20.GL_BLEND). So make sure to enable blending AFTER calling ModelBatch.begin().
modelBatch.begin(camera); // resets Blending to false
// enable Blending
Gdx.gl.glEnable(GL20.GL_BLEND);
Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
// draw mesh
mesh....
Top 50 recent answers are included
Related Tags
transparency × 136opengl × 30
unity × 27
shaders × 20
rendering × 20
textures × 18
java × 10
libgdx × 10
2d × 8
xna × 8
3d × 8
image × 8
alpha-blending × 8
alpha × 8
graphics × 7
xna-4.0 × 7
opengl-es × 7
depth-buffer × 7
c# × 6
color × 6
android × 5
sprites × 5
tiles × 5
glsl × 4
lwjgl × 4