Changeset 2411 for GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include
- Timestamp:
- 06/05/07 14:27:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/PRMDemo/include/PRMDemo.h
r2405 r2411 60 60 t += dt; 61 61 62 //blueLight->setDirection(sin(t),sin(t),cos(t)); 63 blueLight->getParentSceneNode()->setPosition(30 * sin(t), 1, 30 * cos(t)); 62 Vector3 pos(30 * sin(t), 1, 30 * cos(t)); 63 blueLight->getParentSceneNode()->setPosition(pos); 64 Vector3 dir = pos; 65 dir.normalise(); 66 blueLight->setDirection(dir); 67 64 68 65 69 return result; … … 278 282 */ 279 283 blueLight = mSceneMgr->createLight("BlueLight"); 280 blueLight->setType(Light::LT_ POINT);284 blueLight->setType(Light::LT_SPOTLIGHT); 281 285 blueLight->setCastShadows(true); 282 286 blueLight->setDiffuseColour(ColourValue(1,1,1,1)); … … 288 292 blueLight->setPowerScale(200); 289 293 // blueLight->setDirection(1, 0, 0); 290 // blueLight->setSpotlightOuterAngle(Radian(Degree(90))); 291 blueLight->setAttenuation(200, 0, 0, 1); 294 blueLight->setSpotlightOuterAngle(Radian(Degree(90))); 295 blueLight->setSpotlightFalloff(1); 296 blueLight->setAttenuation(2000, 0, 0, 1); 292 297 blueLightNode->attachObject(blueLight); 293 298
Note: See TracChangeset
for help on using the changeset viewer.