Hi.
I have some trouble with transparency of the skeletons imported from Spine to LibGDX.
I have tried a lot of combinations like this:
color.set(1f, 1f, 1f, .5f);
skeleton.setColor(color);
spriteBatch.setColor(Color.rgba8888(1f, 1f, 1f, .5f)); // Spritebatch color is ignored completely it seems
renderer.setPremultipliedAlpha(false); // Also tried true
renderer.draw(spriteBatch, skeleton);
The closest I got was getting each element transparent, but then the items I drew were all transparent so I could see the body though the arms and the legs through the body etc. Not what I want. I want the whole image to render, then that image to be rendered transparent. I guess the solution is in setting the correct GL blend mode?
Any help on this?
Also why does the renderer ignore the color I set for the spritebatch?
Regards