@Override
            protected void initialize(Application app) {
                SimpleApplication simpleApp = (SimpleApplication) app;
                AssetManager assetManager = app.getAssetManager();

                setUpTerrain(simpleApp, assetManager);
                setUpTerrainMaterial(assetManager);
                setUpLights(simpleApp, assetManager);
                setUpCamera(app);

                // Set debug mode
                matTerrain.setInt("DebugValuesMode", debugMode);
            }
Test PBR terrain with different debug modes

@param testName The name of the test (used for screenshot filename)
@param debugMode The debug mode to use
jme3-screenshot-tests/src/test/java/org/jmonkeyengine/screenshottests/terrain/TestPBRTerrain.java