//设置背部剔除看不见背面东西
    osg::ref_ptr<osg::CullFace> cullface=new osg::CullFace(osg::CullFace::BACK);
    state->setAttribute(cullface.get());
    state->setMode(GL_CULL_FACE,osg::StateAttribute::ON);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-05-20
  • 2021-10-07
相关资源
相似解决方案