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

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/extViewer.cpp

    r346 r349  
    347347                camera->setCullingMode( mode & (~osg::CullSettings::SMALL_FEATURE_CULLING) );
    348348
     349                // Create DistortionSet
     350                _distortionSet = new osgViewer::DistortionSet();
     351                _distortionSet->setIntensityMap( intensityMap );
     352
     353
    349354                // Add the distortionHandler
    350                 addEventHandler(new osgViewer::DistortionManipulator);
     355                osgViewer::DistortionManipulator* distManip = new osgViewer::DistortionManipulator();
     356                distManip->setDistortionSet(_distortionSet);
     357                addEventHandler(distManip);
    351358
    352359
Note: See TracChangeset for help on using the changeset viewer.