Hello Roman,

How can I switch off osg::Material from my model?

You could just traverse your whole graph, and on every node and drawable, do

nodeOrDrawable->getOrCreateStateSet()->removeAttribute(osg::StateAttribute::MATERIAL);

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to