- Timestamp:
- 07/07/06 08:59:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r1054 r1096 29 29 #include "SpriteParticleRenderer.h" 30 30 31 bool HighQuality = false; 32 float causize = 7; 31 float causize = 10; 33 32 float cauintens = 40; 34 33 … … 62 61 bool processUnbufferedKeyInput(const FrameEvent& evt) 63 62 { 64 MaterialPtr mat = MaterialManager::getSingleton().getByName("GameTools/Cau ");63 MaterialPtr mat = MaterialManager::getSingleton().getByName("GameTools/Cauathene_SE_0_clone"); 65 64 GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 66 65 GpuProgramParameters* Fparams = mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); … … 98 97 if(first) 99 98 { 100 MaterialPtr mat = MaterialManager::getSingleton().getByName("GameTools/Cau ");99 MaterialPtr mat = MaterialManager::getSingleton().getByName("GameTools/Cauathene_SE_0_clone"); 101 100 GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 102 101 GpuProgramParameters* Fparams = mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); … … 219 218 OgreIlluminationManager::getSingleton().setMainViewport(mWindow->getViewport(0)); 220 219 221 if(! HighQuality) 222 OgreIlluminationManager::getSingleton().setMaxJoinRadius(420); 223 else 224 OgreIlluminationManager::getSingleton().setMaxJoinRadius(0.1); 225 220 OgreIlluminationManager::getSingleton().setMaxJoinRadius(420); 226 221 227 222 Root::getSingleton()._setCurrentSceneManager(mSceneMgr); … … 326 321 } 327 322 328 Material* oldmat = (Material*) MaterialManager::getSingleton().getByName("GameTools/CubeMap/Localized").getPointer(); 329 Material* newmat = oldmat->clone("zazi").getPointer(); 330 331 athene->setMaterialName(newmat->getName()); 323 athene->setMaterialName("GameTools/CausticGlass"); 332 324 //athene->setMaterialName("GameTools/CubeMap/Diffuse"); 333 325
Note: See TracChangeset
for help on using the changeset viewer.