|
楼主 |
发表于 2015-11-18 14:35:07
|
显示全部楼层
我现在直接使用的是:
osgObj-> getOrCreateStateSet()->setMode(GL_CLIP_PLANE0,osg::StateAttribute::OFF);
osgObj-> getOrCreateStateSet()->setMode(GL_CLIP_PLANE1,osg::StateAttribute::OFF);
osgObj-> getOrCreateStateSet()->setMode(GL_CLIP_PLANE2,osg::StateAttribute::OFF);
osgObj-> getOrCreateStateSet()->setMode(GL_CLIP_PLANE3,osg::StateAttribute::OFF);
osgObj-> getOrCreateStateSet()->setMode(GL_CLIP_PLANE4,osg::StateAttribute::OFF);
osgObj-> getOrCreateStateSet()->setMode(GL_CLIP_PLANE5,osg::StateAttribute::OFF);
每次都设置6个附加裁剪的状态为关闭,可以将节点的裁剪面删除,大家有更好的方法吗? |
|