Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2008, 8:59:09 PM (16 years ago)
Author:
rgrieder
Message:
  • readded and uncommented the shader hacks in shader branch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shader/src/orxonox/Orxonox.cc

    r1511 r1514  
    354354    Loader::open(startlevel);
    355355   
     356    // HACK: shader stuff for presentation
     357    Ogre::SceneManager* mSceneMgr = GraphicsEngine::getSingleton().getSceneManager();
     358    mSceneMgr->setAmbientLight(ColourValue(0.4,0.4,0.4));
     359    Ogre::Light* dirlight = mSceneMgr->createLight("Light1");
     360
     361    dirlight->setType(Ogre::Light::LT_DIRECTIONAL);
     362    dirlight->setDirection(Vector3( 0, 1, 5 ));
     363    dirlight->setDiffuseColour(ColourValue(0.6, 0.6, 0.4));
     364    dirlight->setSpecularColour(ColourValue(1.0, 1.0, 1.0));
     365   
    356366    return true;
    357367  }
Note: See TracChangeset for help on using the changeset viewer.