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

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

                    SimpleApplication simpleApp = (SimpleApplication) getApplication();
                    probe = FastLightProbeFactory.makeProbe(simpleApp.getRenderManager(),
                                                           simpleApp.getAssetManager(),
                                                           RESOLUTION,
                                                           Vector3f.ZERO,
                                                           1f,
                                                           1000f,
                                                           simpleApp.getRootNode());

                    probe.getArea().setRadius(100);
                    simpleApp.getRootNode().addLight(probe);
                }

                if (frame > 10 && modelNode.getParent() == null) {
                    SimpleApplication simpleApp = (SimpleApplication) getApplication();
                    simpleApp.getRootNode().attachChild(modelNode);
                }
            }
Test PBR lighting with different parameters

@param testName The name of the test (used for screenshot filename)
@param roughness The roughness value to use
@param updateLight Whether to update the directional light to match camera direction
jme3-screenshot-tests/src/test/java/org/jmonkeyengine/screenshottests/light/pbr/TestPBRLighting.java