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.
This commit is contained in:
Robert Osfield
2002-01-27 20:28:43 +00:00
parent 9f34ae338c
commit 7f65110322

View File

@@ -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);