/ Published in: C++
Use this to make objects render in wireframe.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
osg::PolygonMode * polygonMode = new osg::PolygonMode; polygonMode->setMode( osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE ); stateSet->setAttributeAndModes( polygonMode, osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON );