@Override
    public void simpleUpdate(float tpf) {
        frame++;

        if (frame == 2) {
            modelNode.removeFromParent();
            LightProbe probe;

            if (USE_ACCELERATED_BAKING) {
                probe = FastLightProbeFactory.makeProbe(renderManager, assetManager, RESOLUTION, Vector3f.ZERO, 1f, 1000f, rootNode);
            } else {
                probe = LightProbeFactory.makeProbe(stateManager.getState(EnvironmentCamera.class), rootNode, new JobProgressAdapter<LightProbe>() {

                    @Override
                    public void done(LightProbe result) {
                        System.err.println("Done rendering env maps");
                        tex = EnvMapUtils.getCubeMapCrossDebugViewWithMipMaps(result.getPrefilteredEnvMap(), assetManager);
                    }
                });
            }
            probe.getArea().setRadius(100);
            rootNode.addLight(probe);
            //getStateManager().getState(EnvironmentManager.class).addEnvProbe(probe);
        }
        if (frame > 10 && modelNode.getParent() == null) {
            rootNode.attachChild(modelNode);
        }
    }
A test case for PBR lighting.
Still experimental.

@author nehon
jme3-examples/src/main/java/jme3test/light/pbr/TestPBRLighting.java