protected void cleanup() { super.cleanup(); if (ocean != null) { ocean.getWaterRenderPass().cleanup(); } if (gameAudioSystem != null) { gameAudioSystem.cleanup(); } }
private void setupRenderPasses() { pManager.add(ocean.getWaterRenderPass()); RenderPass rootPass = new RenderPass(); rootPass.add(sky); rootPass.add(ocean); pManager.add(rootPass); shadowPass.add(scene); shadowPass.addOccluder(sheepGroup); pManager.add(shadowPass); RenderPass statPass = new RenderPass(); statPass.add(planting); statPass.add(statNode); pManager.add(statPass); }