Hi Nick, You use OVERRIDE when you want to override the state below that StateSet in the scene graph, and you use PROTECTED when you want to avoid a subgraph being overridden from above. So for your usage case I think PROTECTED would be appropriate rather than OVERRIDE.
Robert. On 9 December 2013 09:17, Trajce Nikolov NICK <trajce.nikolov.n...@gmail.com > wrote: > Hi Community, > > for some reason I can not disable lighting in the RTT scene. The scene is > being rendered with the main scene lighting ON. I tried the basics things > like > > geode->getOrCreateStateSet()->setMode( GL_LIGHTING, > osg::StateAttribute::OFF|osg::StateAttribute::OVERRIDE ); > > I even tried to override it with a shader still lighting is applied to the > whole scene. I see changes when pressing 'l' in the osgviewer (extended > sample) > > Any clue, hints? > > Thanks a bunch! > > Nick > > -- > trajce nikolov nick > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org