Ignore:
Timestamp:
Jun 14, 2012, 10:21:52 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/extViewer.cpp

    r370 r380  
    397397        setUpViewForManualDistortion(ds);
    398398}
     399
     400void 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.