I’m developing a game in LibGDX and one of my problems is related to the alpha value of a Sprite object.
If I create a new Sprite sprite object then sprite.getColor().a is equal to 0.99607843 and not 1. Also if I try to set sprite.setAlpha(1) it still set’s it to 0.99607843, I also tried doing sprite.getColor().a = 1; but it still didn’t work. My question is why is that? Is this just a limitation in LibGDX or am I doing something wrong?
EDIT:
I put an issue on the official lib gdx github page. As of now the issue has been solved just because it was a duplicate of another issue, from what I get this problem is because of lib gdx, but the alpha still get’s corrected on the shader side.