[osg-users] how to disable zbuffer

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Tue Jul 8 08:18:44 PDT 2008


Hi David,

> You just need to disable GL_DEPTH_TEST for the desired object(s).

or

   stateSet->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS),
       osg::StateAttribute::ON);

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com
                                http://www.cm-labs.com/
                         http://whitestar02.webhop.org/



More information about the osg-users mailing list