Changeset 2367
- Timestamp:
- 05/12/07 14:21:33 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/Common/src/SceneSerializer.cpp
r2208 r2367 33 33 context.sceneNode = root->createChildSceneNode(context.entityName); 34 34 context.sceneNode->attachObject(context.entity); 35 35 context.entity->setCastShadows(true); 36 36 return false; 37 37 } -
GTP/trunk/App/Demos/Illum/Ogre/src/Moria/include/Moria.h
r2344 r2367 126 126 //mSceneMgr->setWorldGeometry(occlusion_cfg); 127 127 128 createPostproc();128 //createPostproc(); 129 129 130 130 OgreIlluminationManager::getSingleton().setMainCamera(mCamera); … … 187 187 mainLightNode->attachObject(mainLight); 188 188 //mainLight->setSpotlightRange(Degree(0),Degree(120)); 189 mainLight->setAttenuation(40.0, 0, 3, 0);189 mainLight->setAttenuation(40.0, 0, 4, 0); 190 190 191 191 Vector4 v = mainLight->getAs4DVector(); … … 198 198 199 199 Entity* ent = mSceneMgr->createEntity("troll", "troll.mesh"); 200 ent->setCastShadows(true); 200 201 // Add entity to the scene node 201 202 SceneNode *trollNode = mSceneMgr->getRootSceneNode()->createChildSceneNode( Vector3(5,0,5)); … … 203 204 trollNode->setScale(0.1,0.1,0.1); 204 205 mAnimState = ent->getAnimationState("stand"); 205 mAnimState->setEnabled(true); 206 mAnimState->setEnabled(true); 207 208 DataStreamPtr res = ResourceGroupManager::getSingleton().openResource("illum.hlsl", "GTP_Moria", true, 0); 209 String content = res->getAsString(); 206 210 207 211 OgreIlluminationManager::getSingleton().initTechniques();
Note: See TracChangeset
for help on using the changeset viewer.