protected Camera updateAndGetInternalCamera(int faceId, int w, int h, Vector3f position, float frustumNear, float frustumFar) {
        cam.resize(w, h, false);
        cam.setLocation(position);
        cam.setFrustumPerspective(90.0F, 1F, frustumNear, frustumFar);
        cam.setRotation(new Quaternion().fromAxes(axisX[faceId], axisY[faceId], axisZ[faceId]));
        return cam;
    }
Updates the internal camera to face the given cubemap face
and return it.

@param faceId
           the id of the face (0-5)
@param w
           width of the camera
@param h
           height of the camera
@param position
           position of the camera
@param frustumNear
           near frustum
@param frustumFar
           far frustum
@return The updated camera
jme3-core/src/main/java/com/jme3/environment/baker/GenericEnvBaker.java