- Timestamp:
- Dec 14, 2008, 8:13:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/Scene.cc
r2361 r2447 33 33 #include <OgreSceneManagerEnumerator.h> 34 34 #include <OgreSceneNode.h> 35 #include <OgreLight.h>36 35 37 36 #include "core/CoreIncludes.h" … … 48 47 49 48 this->setScene(this); 50 this->bShadows_ = false;49 this->bShadows_ = true; 51 50 52 51 if (Core::showsGraphics()) … … 69 68 this->rootSceneNode_ = this->sceneManager_->getRootSceneNode(); 70 69 } 71 72 // test test test73 if (Core::showsGraphics() && this->sceneManager_)74 {75 Ogre::Light* light;76 light = this->sceneManager_->createLight("Light-1");77 light->setType(Ogre::Light::LT_DIRECTIONAL);78 light->setDiffuseColour(ColourValue(1.0, 0.9, 0.6, 1.0));79 light->setSpecularColour(ColourValue(1.0, 0.9, 0.6, 1.0));80 light->setDirection(1, -0.3, 0.3);81 }82 // test test test83 70 84 71 this->registerVariables(); … … 116 103 REGISTERSTRING(this->skybox_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applySkybox)); 117 104 REGISTERDATA(this->ambientLight_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyAmbientLight)); 105 REGISTERDATA(this->bShadows_, direction::toclient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyShadows)); 118 106 } 119 107
Note: See TracChangeset
for help on using the changeset viewer.