[osg-users] Problem turning off the lights with override

2012-11-20 Thread 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 ); When i use this though, the lights are turned off successfully.

Re: [osg-users] Problem turning off the lights with override

2012-11-20 Thread Sebastian Messerschmidt
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 |