Hi Robert, Yes, but how do I use osg::ShadeModel? Do I get it from a viewer or camra? > Do I make it my self and then pass it off to something?
You will need to create an instance of the osg::ShadeModel class and apply it to the stateset of the subgraph you want to enable flat shading on. For example: osg::ref_ptr<osg::ShadeModel> shadeModel = new osg::ShadeModel(osg::ShadeModel::FLAT); root->getOrCreateStateSet()->setAttributeAndModes(shadeModel.get(),osg::StateAttribute::ON); where "root" is the root node of the subgraph. Once you've applied the shade model attribute, you can switch back and forth between smooth and flat shading by using the "shadeModel->setMode(..)" method. Cheers, Farshid
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

