[osg-users] Setting alpha channel in Frag Shader does not work.

Steven Powers StevenAPowers at gmail.com
Thu Mar 19 12:51:36 PDT 2009


Ok I figured it out. Apparently alpha blending was getting triggered back on somewhere else in the scene graph. 

calling:


Code:
        ss->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE | osg::StateAttribute::PROTECTED); 



fixed the problem.  

Thanks for the help!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8798#8798








More information about the osg-users mailing list