/** * Creates a new post ViewPort, to display the given camera's content. * <p> * The view will be processed after the pre and main viewports. */ public ViewPort createPostView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); postViewPorts.add(vp); return vp; }
/** * Creates a new main ViewPort, to display the given camera's content. * <p> * The view will be processed before the post viewports but after * the pre viewports. */ public ViewPort createMainView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); viewPorts.add(vp); return vp; }
/** * Creates a new pre ViewPort, to display the given camera's content. * <p> * The view will be processed before the main and post viewports. */ public ViewPort createPreView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); preViewPorts.add(vp); return vp; }
/** * creates an offsceen VP * * @param name * @param offCamera * @return */ protected ViewPort createOffViewPort(final String name, final Camera offCamera) { final ViewPort offView = new ViewPort(name, offCamera); offView.setClearFlags(true, true, true); offView.setBackgroundColor(backGroundColor); return offView; }
reflectionView = new ViewPort("Reflection View", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.setBackgroundColor(ColorRGBA.Black); refractionView = new ViewPort("Refraction View", refractionCam); refractionView.setClearFlags(true, true, true); refractionView.setBackgroundColor(ColorRGBA.Black);
reflectionPass.init(renderManager.getRenderer(), reflectionMapSize, reflectionMapSize, Format.RGBA8, Format.Depth); reflectionCam = new Camera(reflectionMapSize, reflectionMapSize); reflectionView = new ViewPort("reflectionView", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.attachScene(reflectionScene);
/** * Creates a new post ViewPort, to display the given camera's content. * <p> * The view will be processed after the pre and main viewports. */ public ViewPort createPostView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); postViewPorts.add(vp); return vp; }
/** * Creates a new main ViewPort, to display the given camera's content. * <p> * The view will be processed before the post viewports but after * the pre viewports. */ public ViewPort createMainView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); viewPorts.add(vp); return vp; }
/** * Creates a new post ViewPort, to display the given camera's content. * <p> * The view will be processed after the pre and main viewports. */ public ViewPort createPostView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); postViewPorts.add(vp); return vp; }
/** * Creates a new pre ViewPort, to display the given camera's content. * <p> * The view will be processed before the main and post viewports. */ public ViewPort createPreView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); preViewPorts.add(vp); return vp; }
/** * Creates a new pre ViewPort, to display the given camera's content. * <p> * The view will be processed before the main and post viewports. */ public ViewPort createPreView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); preViewPorts.add(vp); return vp; }
/** * Creates a new main ViewPort, to display the given camera's content. * <p> * The view will be processed before the post viewports but after * the pre viewports. */ public ViewPort createMainView(String viewName, Camera cam) { ViewPort vp = new ViewPort(viewName, cam); viewPorts.add(vp); return vp; }
/** * creates an offsceen VP * * @param name * @param offCamera * @return */ protected ViewPort createOffViewPort(final String name, final Camera offCamera) { final ViewPort offView = new ViewPort(name, offCamera); offView.setClearFlags(true, true, true); offView.setBackgroundColor(backGroundColor); return offView; }
reflectionView = new ViewPort("Reflection View", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.setBackgroundColor(ColorRGBA.Black); refractionView = new ViewPort("Refraction View", refractionCam); refractionView.setClearFlags(true, true, true); refractionView.setBackgroundColor(ColorRGBA.Black);
reflectionView = new ViewPort("Reflection View", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.setBackgroundColor(ColorRGBA.Black); refractionView = new ViewPort("Refraction View", refractionCam); refractionView.setClearFlags(true, true, true); refractionView.setBackgroundColor(ColorRGBA.Black);
reflectionView = new ViewPort("Reflection View", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.setBackgroundColor(ColorRGBA.Black); refractionView = new ViewPort("Refraction View", refractionCam); refractionView.setClearFlags(true, true, true); refractionView.setBackgroundColor(ColorRGBA.Black);
reflectionPass.init(renderManager.getRenderer(), reflectionMapSize, reflectionMapSize, Format.RGBA8, Format.Depth); reflectionCam = new Camera(reflectionMapSize, reflectionMapSize); reflectionView = new ViewPort("reflectionView", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.attachScene(reflectionScene);
reflectionPass.init(renderManager.getRenderer(), reflectionMapSize, reflectionMapSize, Format.RGBA8, Format.Depth); reflectionCam = new Camera(reflectionMapSize, reflectionMapSize); reflectionView = new ViewPort("reflectionView", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.attachScene(reflectionScene);
reflectionPass.init(renderManager.getRenderer(), reflectionMapSize, reflectionMapSize, Format.RGBA8, Format.Depth); reflectionCam = new Camera(reflectionMapSize, reflectionMapSize); reflectionView = new ViewPort("reflectionView", reflectionCam); reflectionView.setClearFlags(true, true, true); reflectionView.attachScene(reflectionScene);