osg::ref_ptr<osg::BlendFunc> pBlendFunc = new osg::BlendFunc();
pBlendFunc->setSource(osg::BlendFunc::SRC_ALPHA);
pBlendFunc->setDestination(osg::BlendFunc::ONE_MINUS_SRC_ALPHA);
geode->getOrCreateStateSet()->setAttributeAndModes(pBlendFunc);
geode->getOrCreateStateSet()->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
转载于:https://www.cnblogs.com/baipengchao/p/6405993.html