From 7f65110322a3876532188cba0a571ea578c879c3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 27 Jan 2002 20:28:43 +0000 Subject: [PATCH] Added stateset->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE_ON); to scribbed subgraph so that lighting is always on, this is needed since glMaterial is only active when lighting is enabled. --- src/Demos/osgscribe/osgscribe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Demos/osgscribe/osgscribe.cpp b/src/Demos/osgscribe/osgscribe.cpp index 034444905..5631737d1 100644 --- a/src/Demos/osgscribe/osgscribe.cpp +++ b/src/Demos/osgscribe/osgscribe.cpp @@ -118,6 +118,7 @@ int main( int argc, char **argv ) stateset->setAttributeAndModes(polyoffset,osg::StateAttribute::OVERRIDE_ON); stateset->setAttributeAndModes(polymode,osg::StateAttribute::OVERRIDE_ON); stateset->setMode(GL_TEXTURE_2D,osg::StateAttribute::OVERRIDE_OFF); + stateset->setMode(GL_LIGHTING,osg::StateAttribute::OVERRIDE_ON); decorator->setStateSet(stateset);