Changeset 71 for osgVisual/src
- Timestamp:
- Jul 20, 2010, 9:33:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/core/visual_core.cpp
r70 r71 65 65 viewer->setSceneData( rootNode ); 66 66 67 osg::Group* distortedSceneGraph = NULL; 67 68 #ifdef USE_DISTORTION 68 69 // Initialize distortion 70 OSG_NOTIFY( osg::ALWAYS ) << "Using distortion." << std::endl; 69 71 distortion = new visual_distortion( viewer, arguments ); 70 72 distortion->initialize( rootNode, viewer->getCamera()->getClearColor() ); 73 distortedSceneGraph = distortion->getDistortedSceneGraph(); 71 74 #endif 72 75 73 76 #ifdef USE_SKY_SILVERLINING 74 77 // Initialize sky 78 OSG_NOTIFY( osg::ALWAYS ) << "Using Sky without distortion." << std::endl; 75 79 sky = new visual_skySilverLining( viewer ); 76 #ifdef USE_DISTORTION 77 if ( distortion.valid() ) 78 { 79 OSG_NOTIFY( osg::ALWAYS ) << "Using sky with distortion." << std::endl; 80 sky->init( distortion->getDistortedSceneGraph(), rootNode); 81 } 82 #else 83 OSG_NOTIFY( osg::ALWAYS ) << "Using Sky without distortion." << std::endl; 84 sky->init(NULL, rootNode); 85 #endif 80 sky->init(distortedSceneGraph, rootNode); 86 81 #endif 87 82
Note: See TracChangeset
for help on using the changeset viewer.