- Timestamp:
- 02/13/07 10:38:07 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgblendequation/osgblendequation.cpp
r5912 r6159 133 133 134 134 135 osg::StateSet* stateset = new osg::StateSet; 135 osg::StateSet* stateset = new osg::StateSet; 136 stateset->setDataVariance(osg::Object::DYNAMIC); 137 136 138 osg::BlendEquation* blendEquation = new osg::BlendEquation(osg::BlendEquation::FUNC_ADD); 139 blendEquation->setDataVariance(osg::Object::DYNAMIC); 137 140 138 141 stateset->setAttributeAndModes(blendEquation,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON); … … 145 148 viewer.addEventHandler(new TechniqueEventHandler(blendEquation)); 146 149 147 148 // run optimization over the scene graph149 osgUtil::Optimizer optimzer;150 optimzer.optimize(root);151 152 150 // add a viewport to the viewer and attach the scene graph. 153 151 viewer.setSceneData( root );
