@Override
            public void update(float tpf) {
                if (realtimeBaking) {
                    frame++;
                    if (frame == 2) {
                        SimpleApplication simpleApp = (SimpleApplication) getApplication();
                        simpleApp.getRootNode().getControl(EnvironmentProbeControl.class).rebake();
                    }
                }
            }
Test PBR simple with different parameters

@param testName The name of the test (used for screenshot filename)
@param realtimeBaking Whether to use realtime baking
jme3-screenshot-tests/src/test/java/org/jmonkeyengine/screenshottests/light/pbr/TestPBRSimple.java