|
楼主 |
发表于 2008-10-29 09:41:04
|
显示全部楼层
谢谢 array.
“您是对场景根节点设置的Light属性吗?”
是
“也可以强制继承根节点的渲染属性(osg::StateAttribute::INHERIT)”
请问是改成:
lightSS->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
lightSS->setMode(GL_LIGHTING, osg::StateAttribute::INHERIT);
lightSS->setMode(GL_LIGHT0, osg::StateAttribute::OFF);
lightSS->setMode(GL_LIGHT0, osg::StateAttribute::INHERIT);
lightSS->setMode(GL_LIGHT1, osg::StateAttribute::OFF);
lightSS->setMode(GL_LIGHT1, osg::StateAttribute::INHERIT);
测了改过的code, 结果跟以前一样
不知该不该用 viewer.setLightingMode(osgViewer::Viewer::NO_LIGHT);
谢谢回答贴图 |
|