@Override public void render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, FrameBuffer fb, PostProcessBean ppb) { boolean postproc = postprocessCapture(ppb, fb, rw, rh); // Viewport extendViewport.setCamera(camera.getCamera()); extendViewport.setWorldSize(rw, rh); extendViewport.setScreenSize(rw, rh); extendViewport.apply(); // Render sgr.renderScene(camera, t, rc); // Uncomment this to show the shadow map // if (GlobalConf.scene.SHADOW_MAPPING) { // // Render shadow map // int s = GlobalConf.scene.SHADOW_MAPPING_RESOLUTION; // sb.begin(); // for (int i = 0; i < sgr.shadowMapFb.length; i++) { // sb.draw(sgr.shadowMapFb[i].getColorBufferTexture(), 0, 0, s, s); // } // sb.end(); // } postprocessRender(ppb, fb, postproc, camera, rw, rh); }