Hello Robert, Your solution works very well, the code I'm using to get the LightModel is
Code: osg::LightModel *lightModel = dynamic_cast<osg::LightModel*> (viewer->getCamera()->getStateSet()->getAttribute(osg::StateAttribute::LIGHTMODEL)); I've already tested that changing its state does affect the render as expected. It's a good sign that even after years of evolution you have access to nested instances so easily. Keep up the great work. Thank you! Claudio ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75793#75793 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org