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);

相关文章:

  • 2021-07-31
  • 2021-10-26
  • 2021-06-25
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-25
相关资源
相似解决方案