Ignore:
Timestamp:
Jun 15, 2012, 7:22:30 AM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/extViewer.cpp

    r380 r381  
    397397        setUpViewForManualDistortion(ds);
    398398}
    399 
    400 void extViewer::updateDistortion()
    401 {
    402         if(!_distortionSet.valid())
    403         {
    404                 osg::notify(osg::WARN) << "You cannot update the distortion without distortion set up." << std::endl;
    405                 return;
    406         }
    407 
    408         this->getCamera()->setViewMatrix(_distortionSet->getViewOffset());
    409         this->getCamera()->setProjectionMatrix(_distortionSet->getProjectionOffset());
    410 }
Note: See TracChangeset for help on using the changeset viewer.