Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3597 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Mar 17, 2005, 11:04:59 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Light is now a World-entity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3596 r3597  
    7373  delete this->nullParent;
    7474  delete this->entities;
    75   delete this->light;
     75  delete this->lightMan;
    7676  delete this->trackManager;
    7777}
     
    297297  this->spawn(terrain);
    298298  // 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();
    311309
    312310
Note: See TracChangeset for help on using the changeset viewer.