Added alpha test setting

This commit is contained in:
Robert Osfield 2006-11-15 20:29:28 +00:00
parent c24289315a
commit a73e9250ee

View File

@ -731,6 +731,8 @@ osg::Node* createShaderModel(osg::ref_ptr<osg::Image>& image_3d, osg::ref_ptr<os
osg::StateSet* stateset = geode->getOrCreateStateSet();
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,