Hi,
i try to turn off the light on my scene - without success :(
Here is the example code:
int main(int argc, char* argv[])
{
osgViewer::Viewer v;
osg::ref_ptr<osg::Node> node =
osgDB::readNodeFile("bau_Bauernhaus.flt");
node->getOrCreateStateSet()->setMode(GL_LIGHTING,
osg::StateAttribute::OFF);
v.setSceneData(node.get());
v.setLightingMode(osg::View::NO_LIGHT);
v.getCamera()->getOrCreateStateSet()->setMode(GL_LIGHTING,
osg::StateAttribute::OFF);
return v.run();
}
What's wrong?
Thanks for answers!
Philipp
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org