Changeset 380 for experimental/distortionNG/extViewer.cpp
- Timestamp:
- Jun 14, 2012, 10:21:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/extViewer.cpp
r370 r380 397 397 setUpViewForManualDistortion(ds); 398 398 } 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.