LibGdx texture drawn as inverse of what #getTextureData gives
I've been trying to resolve this issue I have been having with displaying a texture correctly on my libgdx desktop program. I have an Orthographic camera with which when I set as: camera.setOrtho(false); I get this image: And when I set it as: camera.setOrtho(true); I get this image: The red image is drawn with a SpriteBatch: batch.draw(texture, x, y, width, height); While the white image is drawn from individual points plotted based on if their alpha value was 1. TextureData td = texture.getTextureData(); td.prepare; Pixmap map = td.consumePixmap(); for (int i = 0; i < map.getWidth(); i++)