Changeset 3597 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc
- Timestamp:
- Mar 17, 2005, 11:04:59 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3596 r3597 73 73 delete this->nullParent; 74 74 delete this->entities; 75 delete this->light ;75 delete this->lightMan; 76 76 delete this->trackManager; 77 77 } … … 297 297 this->spawn(terrain); 298 298 // LIGHT initialisation 299 light = Light::getInstance(); 300 light->setAmbientColor(.1,.1,.1); 301 light->addLight(); 302 light->setAttenuation(QUADRATIC, 1.0); 303 light->setAttenuation(CONSTANT, 2.0); 304 light->setAttenuation(QUADRATIC, 1.0); 305 light->setPosition(10.0, 30.0, 10.0); 306 light->setDiffuseColor(1,1,1); 307 // light->addLight(1); 308 // light->setPosition(20, 10, -20); 309 // light->setDiffuseColor(0,0,0); 310 light->debug(); 299 lightMan = LightManager::getInstance(); 300 lightMan->setAmbientColor(.1,.1,.1); 301 lightMan->addLight(); 302 lightMan->setPosition(10.0, 30.0, 10.0); 303 lightMan->setAttenuation(1.0, 0, 0); 304 lightMan->setDiffuseColor(1,1,1); 305 // lightMan->addLight(1); 306 // lightMan->setPosition(20, 10, -20); 307 // lightMan->setDiffuseColor(0,0,0); 308 lightMan->debug(); 311 309 312 310
Note: See TracChangeset
for help on using the changeset viewer.