public ColorRGBA getPixel(Vector3f vector, ColorRGBA store) {

        if (store == null) {
            store = new ColorRGBA();
        }

        int face = EnvMapUtils.getCubemapFaceTexCoordFromVector(vector, sizes[0], uvs, EnvMapUtils.FixSeamsMethod.Stretch);
        raster.setSlice(face);
        return raster.getPixel((int) uvs.x, (int) uvs.y, store);
    }
Reads a pixel from the cube map given the coordinate vector
@param vector the direction vector to fetch the texel
@param store the color in which to store the pixel color read.
@return the color of the pixel read.
jme3-core/src/main/java/com/jme3/environment/util/CubeMapWrapper.java