|

楼主 |
发表于 2014-9-10 14:41:46
|
显示全部楼层
float factor = 1.0;
float units = 1.0;
osg::ref_ptr<osg: olygonOffset> polygon_offset = new osg::PolygonOffset;
polygon_offset->setFactor(factor);
polygon_offset->setUnits(units);
ss->setAttribute(polygon_offset.get(), osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE);
ss->setMode(GL_POLYGON_OFFSET_FILL, osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE);
已经用了,设置了好多参数,都没有变化! |
|