Ignore:
Timestamp:
01/23/08 00:08:53 (16 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/src/ReflectionTest/include/ReflectionTest.h

    r2277 r2628  
    3232 
    3333float worldSizeVar = 0.002; 
    34 float refIndex = 0.995; 
     34float refIndex = 0.8; 
    3535int scene = 1; 
    3636FrameCapture* capture; 
     
    3939bool useCauInt = true; 
    4040 
    41 int currentMaterial = 0; 
    42 int currentObject = 1; 
     41int currentMaterial = 2; 
     42int currentObject = 3; 
    4343String objectNames[] = {String("sphere.mesh"), 
    4444                        String("teapot.mesh"), 
     
    127127                        worldSizeVar -= 0.002; 
    128128                        if(worldSizeVar < 0.002)worldSizeVar = 0.002; 
    129                         MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Trianglesobject_SE_0_clone"); 
     129                        MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles_clone_object_SE_0"); 
    130130                        if(!mat.isNull()) 
    131131                        { 
     
    137137        { 
    138138                        worldSizeVar += 0.002; 
    139                         MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Trianglesobject_SE_0_clone"); 
     139                        MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles_clone_object_SE_0"); 
    140140                        if(!mat.isNull()) 
    141141                        { 
     
    148148                        useCauInt = !useCauInt; 
    149149 
    150                         MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Trianglesobject_SE_0_clone"); 
     150                        MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/MultiBounce/CauCube_Triangles_clone_object_SE_0"); 
    151151                        if(!mat.isNull()) 
    152152                        { 
     
    176176                if (mInputDevice->isKeyDown(KC_J)) 
    177177        {                        
    178                         refIndex -= 0.001; 
     178                        refIndex -= 0.01; 
    179179 
    180180                        MaterialPtr mat1 = MaterialManager::getSingleton().getByName(materialNames[currentMaterial]+"_clone_object_SE_0"); 
     
    194194                if (mInputDevice->isKeyDown(KC_K)) 
    195195        { 
    196                         refIndex += 0.001; 
     196                        refIndex += 0.01; 
    197197                         
    198198                        MaterialPtr mat1 = MaterialManager::getSingleton().getByName(materialNames[currentMaterial]+"_clone_object_SE_0"); 
     
    505505 
    506506                mSceneMgr->setShadowTechnique(SHADOWTYPE_NONE); 
    507          
     507/*       
    508508                Light* redLight1 = mSceneMgr->createLight("RedLight1"); 
    509509                redLight1->setType(Light::LT_POINT); 
     
    523523                greenLightNode1->setPosition(1.312,1.313,0); 
    524524                greenLightNode1->attachObject(greenLight1);  
    525  
     525*/ 
    526526                Light* mainBlueLight = mSceneMgr->createLight("MainBlueLight"); 
    527527                mainBlueLight->setType(Light::LT_SPOTLIGHT); 
Note: See TracChangeset for help on using the changeset viewer.