Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3440 in orxonox.OLD for orxonox/trunk/src/world.cc


Ignore:
Timestamp:
Mar 1, 2005, 8:55:53 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Light: added ambientColor, removed fancy effects :)

File:
1 edited

Legend:

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

    r3439 r3440  
    878878      this->localCamera->timeSlice(dt);
    879879      this->trackManager->tick(dt);
    880       this->light->setPosition(10*cos((double)currentFrame/1000),10, 10*sin((double)currentFrame/1000));
    881       this->light->setDiffuseColor(.5-.5*cos((double)currentFrame/1000), .5+sin((double)currentFrame/1000), .5+sin((double)currentFrame/1000));
    882       this->light->setSpecularColor(.5-.5*sin((double)currentFrame/1000), .5+sin((double)currentFrame/1000), .5+cos((double)currentFrame/1000));
    883880    }
    884881  this->lastFrame = currentFrame;
Note: See TracChangeset for help on using the changeset viewer.