diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index 1466683ba..112473851 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -731,6 +731,8 @@ osg::Node* createShaderModel(osg::ref_ptr& image_3d, osg::ref_ptrgetOrCreateStateSet(); stateset->setEventCallback(new FollowMouseCallback); + + stateset->setMode(GL_ALPHA_TEST,osg::StateAttribute::ON); // set up the 3d texture itself, // note, well set the filtering up so that mip mapping is disabled,