Changeset 2373 for GTP/trunk/App/Demos/Illum/Ogre/src
- Timestamp:
- 05/14/07 11:03:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include/Moria.h
r2367 r2373 182 182 mainLightNode = rootNode->createChildSceneNode(); 183 183 184 mainLightNode->setPosition(15, 10,15);184 mainLightNode->setPosition(15,5,15); 185 185 mainLight->setPowerScale(30); 186 186 //mainLight->setDirection(1,0, 0); … … 189 189 mainLight->setAttenuation(40.0, 0, 4, 0); 190 190 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 191 201 Vector4 v = mainLight->getAs4DVector(); 192 202 … … 240 250 mRoot->addFrameListener(mFrameListener); 241 251 OgreIlluminationManager::getSingleton().setPriority(3); 242 252 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 243 253 } 244 254
Note: See TracChangeset
for help on using the changeset viewer.