public Texture getAtlasTexture(String mapName) {
        if (images == null) {
            return null;
        }
        byte[] image = images.get(mapName);
        if (image != null) {
            //TODO check if color space shouldn't be sRGB
            Texture2D tex = new Texture2D(new Image(format, atlasWidth, atlasHeight, BufferUtils.createByteBuffer(image), null, ColorSpace.Linear));
            tex.setMagFilter(Texture.MagFilter.Bilinear);
            tex.setMinFilter(Texture.MinFilter.BilinearNearestMipMap);
            tex.setWrap(Texture.WrapMode.EdgeClamp);
            return tex;
        }
        return null;
    }
Creates a new atlas texture for the given map name.

@param mapName the desired name
@return the atlas texture
jme3-core/src/tools/java/jme3tools/optimize/TextureAtlas.java