Ignore:
Timestamp:
05/14/07 11:03:30 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r2367 r2373  
    182182                mainLightNode = rootNode->createChildSceneNode(); 
    183183                 
    184                 mainLightNode->setPosition(15,10,15);            
     184                mainLightNode->setPosition(15,5,15);             
    185185                mainLight->setPowerScale(30); 
    186186                //mainLight->setDirection(1,0, 0); 
     
    189189                mainLight->setAttenuation(40.0, 0, 4, 0); 
    190190 
     191                Light* blueLight = mSceneMgr->createLight("blueLight"); 
     192                blueLight->setType(Light::LT_POINT); 
     193                blueLight->setCastShadows(true); 
     194                blueLight->setDiffuseColour(ColourValue(0.45,0.75,0.8)); 
     195                blueLight->setPowerScale(30); 
     196                blueLight->setAttenuation(40.0, 0, 4, 0); 
     197                SceneNode* blueLightNode = rootNode->createChildSceneNode(); 
     198                blueLightNode->setPosition(15,10,15); 
     199                blueLightNode->attachObject(blueLight); 
     200                 
    191201                Vector4 v = mainLight->getAs4DVector(); 
    192202 
     
    240250                mRoot->addFrameListener(mFrameListener); 
    241251                OgreIlluminationManager::getSingleton().setPriority(3); 
    242                 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 
     252           mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 
    243253    } 
    244254 
Note: See TracChangeset for help on using the changeset viewer.