Enable light source for transparent surfaces
This commit is contained in:
parent
e46357d819
commit
25e0ab0b82
1 changed files with 2 additions and 4 deletions
|
@ -1457,7 +1457,6 @@ FGRenderer::setupView( void )
|
|||
lightSource->setReferenceFrame(osg::LightSource::RELATIVE_RF);
|
||||
lightSource->setLocalStateSetModes(osg::StateAttribute::ON);
|
||||
lightSource->setUpdateCallback(new FGLightSourceUpdateCallback);
|
||||
if ( _classicalRenderer )
|
||||
mRealRoot->addChild(lightSource);
|
||||
// we need a white diffuse light for the phase of the moon
|
||||
osg::LightSource* sunLight = new osg::LightSource;
|
||||
|
@ -1475,7 +1474,6 @@ FGRenderer::setupView( void )
|
|||
skyGroup->addChild(_sky->getPreRoot());
|
||||
sunLight->addChild(skyGroup);
|
||||
mRoot->addChild(sceneGroup);
|
||||
if ( _classicalRenderer )
|
||||
mRoot->addChild(sunLight);
|
||||
|
||||
// Clouds are added to the scene graph later
|
||||
|
|
Loading…
Add table
Reference in a new issue