Changeset 357 for experimental/distortionNG/extViewer.cpp
- Timestamp:
- Apr 22, 2012, 9:01:45 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/distortionNG/extViewer.cpp
r353 r357 18 18 19 19 #include "extViewer.h" 20 #include "distortionNG.h"21 20 22 21 #include <osg/Switch> … … 275 274 276 275 osg::ref_ptr<osg::Switch> root = _distortionSet->getDistortionInternals(); 277 root->addChild(geode, true); // adds mesh,shader,.. so camera renders mesh (and thus render the scene)276 root->addChild(geode, true); // Child #0 (adds mesh,shader,.. so camera renders mesh (and thus render the scene)) 278 277 camera->addChild(root); 279 278
Note: See TracChangeset
for help on using the changeset viewer.