|
-
- osg::Depth* depth = new osg::Depth;
- depth->setFunction(osg::Depth::ALWAYS);
- osg::Stencil* stencil = new osg::Stencil;
- stencil->setFunction(osg::Stencil::EQUAL,1,~0u);
- stencil->setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP, osg::Stencil::ZERO);
- // set up additive blending.
- osg::BlendFunc* trans = new osg::BlendFunc;
- trans->setFunction(osg::BlendFunc::ONE,osg::BlendFunc::ONE);
复制代码
-
- osg::Stencil* stencil = new osg::Stencil;
- stencil->setFunction(osg::Stencil::ALWAYS,0,~0u);
- stencil->setOperation(osg::Stencil::KEEP, osg::Stencil::KEEP, osg::Stencil::REPLACE);
复制代码 |
|