- Timestamp:
- 06/26/06 09:40:34 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r875 r1054 1 2 3 1 4 /* 2 5 ----------------------------------------------------------------------------- … … 130 133 bool result = ExampleFrameListener::frameStarted(evt); 131 134 framecount++; 132 135 return result; 133 136 } 134 137 … … 299 302 300 303 kupolaNode->_updateBounds(); 301 //atheneNode->_updateBounds();304 atheneNode->_updateBounds(); 302 305 303 306 //Init lights … … 311 314 mainLightNode->attachObject(mainLight); 312 315 313 athene->setMaterialName("GameTools/CubeMap/Localized");314 316 aluSphere->setMaterialName("EnvMetals/Alu"); 315 317 copperSphere->setMaterialName("EnvMetals/Copper"); 316 goldSphere->setMaterialName("EnvMetals/Gold"); 317 silverSphere->setMaterialName("EnvMetals/Silver"); 318 318 319 { 320 Material* oldmat = (Material*) MaterialManager::getSingleton().getByName("EnvMetals/Gold").getPointer(); 321 Material* newmat = oldmat->clone("gold1").getPointer(); 322 Material* newmat2 = oldmat->clone("gold2").getPointer(); 323 324 goldSphere->setMaterialName(newmat->getName()); 325 silverSphere->setMaterialName(newmat2->getName()); 326 } 327 328 Material* oldmat = (Material*) MaterialManager::getSingleton().getByName("GameTools/CubeMap/Localized").getPointer(); 329 Material* newmat = oldmat->clone("zazi").getPointer(); 330 331 athene->setMaterialName(newmat->getName()); 332 //athene->setMaterialName("GameTools/CubeMap/Diffuse"); 333 319 334 OgreIlluminationManager::getSingleton().initTechniques(); 320 335
Note: See TracChangeset
for help on using the changeset viewer.