Show
Ignore:
Timestamp:
02/13/07 10:38:07 (7 years ago)
Author:
robert
Message:

Changed the BlendFunction? StateSet? to DYNAMIC

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgblendequation/osgblendequation.cpp

    r5912 r6159  
    133133     
    134134     
    135     osg::StateSet*      stateset =      new osg::StateSet; 
     135    osg::StateSet* stateset = new osg::StateSet; 
     136    stateset->setDataVariance(osg::Object::DYNAMIC); 
     137     
    136138    osg::BlendEquation* blendEquation = new osg::BlendEquation(osg::BlendEquation::FUNC_ADD); 
     139    blendEquation->setDataVariance(osg::Object::DYNAMIC); 
    137140     
    138141    stateset->setAttributeAndModes(blendEquation,osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON); 
     
    145148    viewer.addEventHandler(new TechniqueEventHandler(blendEquation)); 
    146149 
    147      
    148     // run optimization over the scene graph 
    149     osgUtil::Optimizer optimzer; 
    150     optimzer.optimize(root); 
    151       
    152150    // add a viewport to the viewer and attach the scene graph. 
    153151    viewer.setSceneData( root );