[osg-users] Getting LigtModel from viewer

Claudio Benghi claudio.benghi at gmail.com
Sun Apr 7 16:17:22 PDT 2019

Hello All,

I'd like to be able to toggle the setTwoSided() value of the LightModel that gets instantiated with the default osg::viewer class.

I've looked at the code a while but I can't find a way to get the instance of LightModel from the instance of the viewer. I suppose it's attached to the global state that gets instantiated in the sceneView class, but I'm not sure how to get to that one either.

Any help much appreciated.


Read this topic online here:

More information about the osg-users mailing list