Rembrandt: fix sky color at altitude.
Don't override global clear color in the Lighting stage. Should fix ugly 'circle' appearing due to sky sphere being clipped when above 32000 ft. Fix suggested by Emilian H.
This commit is contained in:
parent
617e638242
commit
12ea6824eb
1 changed files with 0 additions and 1 deletions
|
@ -1109,7 +1109,6 @@ FGRenderer::buildDeferredLightingCamera( flightgear::CameraInfo* info, osg::Grap
|
||||||
buildAttachments(info, camera, stage->name, stage->attachments);
|
buildAttachments(info, camera, stage->name, stage->attachments);
|
||||||
camera->setDrawBuffer(GL_FRONT);
|
camera->setDrawBuffer(GL_FRONT);
|
||||||
camera->setReadBuffer(GL_FRONT);
|
camera->setReadBuffer(GL_FRONT);
|
||||||
camera->setClearColor( osg::Vec4( 0.5, 0.5, 0.5, 1. ) );
|
|
||||||
camera->setClearMask( GL_COLOR_BUFFER_BIT );
|
camera->setClearMask( GL_COLOR_BUFFER_BIT );
|
||||||
osg::StateSet* ss = camera->getOrCreateStateSet();
|
osg::StateSet* ss = camera->getOrCreateStateSet();
|
||||||
ss->setAttribute( new osg::Depth(osg::Depth::LESS, 0.0, 1.0, false) );
|
ss->setAttribute( new osg::Depth(osg::Depth::LESS, 0.0, 1.0, false) );
|
||||||
|
|
Loading…
Reference in a new issue