[osg-users] disabled lighting after migration

Sebastian Schmidt herrdersuppen at gmail.com
Tue Jan 23 00:44:49 PST 2018


I set this for my main camera and it works.

Code:
osg::TexEnv* texenv = new osg::TexEnv;
texenv->setMode(osg::TexEnv::MODULATE);
ss->setTextureAttributeAndModes(0,texenv, osg::StateAttribute::ON);




There was a change in SceneView::setDefaults() in line 258: 

Code:
(if ((options&APPLY_GLOBAL_DEFAULTS)))


Maybe thats why it worked with 3.0.1.

------------------------
OSG Version: 3.0.1
OS: OpenSuse Leap 42.1

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72834#72834







More information about the osg-users mailing list