Hello.

I try to turn off the lights in my scene using the following code but it fails.
group->getOrCreateStateSet()->setMode(GL_LIGHTING,
osg::StateAttribute::OFF || osg::StateAttribute::OVERRIDE );

When i use this though, the lights are turned off successfully.
group->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF  );

What's wrong with the first one ?
group has only 1 child with the default value in lighting mode.

thnx.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to