- Timestamp:
- 01/23/08 00:08:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/ReflectionTest/include/ReflectionTest.h
r2277 r2628 32 32 33 33 float worldSizeVar = 0.002; 34 float refIndex = 0. 995;34 float refIndex = 0.8; 35 35 int scene = 1; 36 36 FrameCapture* capture; … … 39 39 bool useCauInt = true; 40 40 41 int currentMaterial = 0;42 int currentObject = 1;41 int currentMaterial = 2; 42 int currentObject = 3; 43 43 String objectNames[] = {String("sphere.mesh"), 44 44 String("teapot.mesh"), … … 127 127 worldSizeVar -= 0.002; 128 128 if(worldSizeVar < 0.002)worldSizeVar = 0.002; 129 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles object_SE_0_clone");129 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles_clone_object_SE_0"); 130 130 if(!mat.isNull()) 131 131 { … … 137 137 { 138 138 worldSizeVar += 0.002; 139 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles object_SE_0_clone");139 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles_clone_object_SE_0"); 140 140 if(!mat.isNull()) 141 141 { … … 148 148 useCauInt = !useCauInt; 149 149 150 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles object_SE_0_clone");150 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles_clone_object_SE_0"); 151 151 if(!mat.isNull()) 152 152 { … … 176 176 if (mInputDevice->isKeyDown(KC_J)) 177 177 { 178 refIndex -= 0.0 01;178 refIndex -= 0.01; 179 179 180 180 MaterialPtr mat1 = MaterialManager::getSingleton().getByName(materialNames[currentMaterial]+"_clone_object_SE_0"); … … 194 194 if (mInputDevice->isKeyDown(KC_K)) 195 195 { 196 refIndex += 0.0 01;196 refIndex += 0.01; 197 197 198 198 MaterialPtr mat1 = MaterialManager::getSingleton().getByName(materialNames[currentMaterial]+"_clone_object_SE_0"); … … 505 505 506 506 mSceneMgr->setShadowTechnique(SHADOWTYPE_NONE); 507 507 /* 508 508 Light* redLight1 = mSceneMgr->createLight("RedLight1"); 509 509 redLight1->setType(Light::LT_POINT); … … 523 523 greenLightNode1->setPosition(1.312,1.313,0); 524 524 greenLightNode1->attachObject(greenLight1); 525 525 */ 526 526 Light* mainBlueLight = mSceneMgr->createLight("MainBlueLight"); 527 527 mainBlueLight->setType(Light::LT_SPOTLIGHT);
Note: See TracChangeset
for help on using the changeset viewer.