Changeset 2329 for GTP/trunk/App
- Timestamp:
- 04/16/07 20:03:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include/Moria.h
r2315 r2329 89 89 void createPostproc() 90 90 { 91 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0),91 /* CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 92 92 "GTP/PostProc/Glow"); 93 93 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), … … 97 97 "GTP/PostProc/ToneMap"); 98 98 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 99 "GTP/PostProc/ToneMap", true); 99 "GTP/PostProc/ToneMap", true); */ 100 101 CompositorManager::getSingleton().addCompositor(mWindow->getViewport(0), 102 "GTP/PostProc/Plain"); 103 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 104 "GTP/PostProc/Plain", true); 105 100 106 } 101 107 102 108 void chooseSceneManager() 103 109 { 104 mSceneMgr = mRoot->createSceneManager("OctreeSceneManager");105 //mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager");110 //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 111 mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 106 112 } 107 113 108 114 void createScene(void) ///TOWERS 109 115 { 110 //std::string occlusion_cfg("OcclusionCulling.cfg");111 //mSceneMgr->setWorldGeometry(occlusion_cfg);112 113 createPostproc();116 std::string occlusion_cfg("OcclusionCulling.cfg"); 117 mSceneMgr->setWorldGeometry(occlusion_cfg); 118 119 //createPostproc(); 114 120 115 121 OgreIlluminationManager::getSingleton().setMainCamera(mCamera);
Note: See TracChangeset
for help on using the changeset viewer.