Skip to content
Advertisement

Tag: blending

LIBGdx – I get gray pixels in a sprite when saving as PNG

I’ve been trying to scale down a sprite and save it to the android local store for later use, but everything I’ve tried always results in a grey edge around the sprite. Sprites As you can see, the sprite batch blend function is set to GL20.GL_ONE, GL20.GL_ONE_MINUS_SRC_ALPHA and rendering to the screen look fine. It’s only when the PNG is

Advertisement