From db7df9d6d4c0baad32fc3543f2e58da2ce12b796 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 2 Jan 2007 12:19:26 +0000 Subject: [PATCH] Switched off lighting in osgcatch. --- examples/osgcatch/osgcatch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgcatch/osgcatch.cpp b/examples/osgcatch/osgcatch.cpp index ba10fabbe..92cfd3ddd 100644 --- a/examples/osgcatch/osgcatch.cpp +++ b/examples/osgcatch/osgcatch.cpp @@ -1560,6 +1560,8 @@ int main( int argc, char **argv ) // creat the scene from the file list. osg::ref_ptr rootNode = seh->createScene(); + rootNode->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF); + //osgDB::writeNodeFile(*rootNode,"test.osg"); // set the scene to render