- Timestamp:
- 02/28/07 18:18:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r2057 r2175 67 67 bool processUnbufferedKeyInput(const FrameEvent& evt) 68 68 { 69 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Caustic/CauCube_PointSpritecenterHead_SE_0_clone");69 /* MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Caustic/CauCube_PointSpritecenterHead_SE_0_clone"); 70 70 GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 71 71 GpuProgramParameters* Fparams = mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); … … 97 97 Vparams->setNamedConstant("CauSpriteSize", causize); 98 98 } 99 99 */ 100 100 return ExampleFrameListener::processUnbufferedKeyInput(evt); 101 101 } … … 105 105 if(first) 106 106 { 107 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Caustic/CauCube_PointSpritecenterHead_SE_0_clone");107 /* MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Caustic/CauCube_PointSpritecenterHead_SE_0_clone"); 108 108 GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 109 109 GpuProgramParameters* Fparams = mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); … … 112 112 Fparams->setNamedConstant("CausticColor", causticColor, 4); 113 113 Vparams->setNamedConstant("CauSpriteSize", causize); 114 first = false; 114 first = false;*/ 115 115 } 116 116 … … 187 187 "GTP/PostProc/ToneMap"); 188 188 CompositorManager::getSingleton().setCompositorEnabled(mWindow->getViewport(0), 189 "GTP/PostProc/ToneMap", true); 189 "GTP/PostProc/ToneMap", true); 190 190 } 191 191 192 void chooseSceneManager() 193 { 194 mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 195 //mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 196 } 192 197 193 198 void createScene(void) 194 199 { 195 196 //createPostproc(); 200 createPostproc(); 197 201 198 202 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 288 292 goldHead->setMaterialName("GTP/EnvMap/Gold"); 289 293 silverHead->setMaterialName("GTP/EnvMap/Silver"); 290 centerHead->setMaterialName("GTP/Caustic/Glass"); 291 292 /*aluHead->setVisible(false); 293 copperHead->setVisible(false); 294 goldHead->setVisible(false); 295 silverHead->setVisible(false); 296 centerHead->setVisible(false);*/ 294 centerHead->setMaterialName("GTP/Caustic/Glass_PointSprite"); 297 295 298 296 OgreIlluminationManager::getSingleton().initTechniques();
Note: See TracChangeset
for help on using the changeset viewer.