Hi!

I have a short question about Shaders: How can I disable a Shader?

osg::StateSet* ss = m_pNode->getOrCreateStateSet();
ss->setAttributeAndModes(m_program.get(), osg::StateAttribute::OFF);

Does not work, even if I set it for the first time.
Where is the trick?

Thanks in advance,
Christian

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to