Hello Peterakos:
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 );
Did you by any chance mean:
osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE
instead of
osg::StateAttribute::OFF || osg::StateAttribute::OVERRIDE
:-)
cheers
Sebastian
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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org