public static TextureCubeMap makeCubeMap(Image rightImg, Image leftImg, Image upImg, Image downImg, Image backImg, Image frontImg, Image.Format format) {
        Image cubeImage = new Image(format, leftImg.getWidth(), leftImg.getHeight(), null, ColorSpace.Linear);

        cubeImage.addData(rightImg.getData(0));
        cubeImage.addData(leftImg.getData(0));

        cubeImage.addData(upImg.getData(0));
        cubeImage.addData(downImg.getData(0));

        cubeImage.addData(backImg.getData(0));
        cubeImage.addData(frontImg.getData(0));

        cubeImage.setMipMapSizes(rightImg.getMipMapSizes());

        TextureCubeMap cubeMap = new TextureCubeMap(cubeImage);
        cubeMap.setAnisotropicFilter(0);
        cubeMap.setMagFilter(Texture.MagFilter.Bilinear);
        cubeMap.setMinFilter(Texture.MinFilter.BilinearNoMipMaps);
        cubeMap.setWrap(Texture.WrapMode.EdgeClamp);

        return cubeMap;
    }
Creates a cube map from 6 images

@param leftImg the west side image, also called negative x (negX) or left
image
@param rightImg the east side image, also called positive x (posX) or
right image
@param downImg the bottom side image, also called negative y (negY) or
down image
@param upImg the top side image, also called positive y (posY) or up image
@param backImg the south side image, also called positive z (posZ) or
back image
@param frontImg the north side image, also called negative z (negZ) or
front image
@param format the format of the image
@return a cube map
jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java