From 12ea6824eb91c10e5f553f9a6ceb88c9faf49913 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 17 Dec 2013 13:56:26 +0000 Subject: [PATCH] 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. --- src/Viewer/renderer.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Viewer/renderer.cxx b/src/Viewer/renderer.cxx index 739f691cd..7a5489240 100644 --- a/src/Viewer/renderer.cxx +++ b/src/Viewer/renderer.cxx @@ -1109,7 +1109,6 @@ FGRenderer::buildDeferredLightingCamera( flightgear::CameraInfo* info, osg::Grap buildAttachments(info, camera, stage->name, stage->attachments); camera->setDrawBuffer(GL_FRONT); camera->setReadBuffer(GL_FRONT); - camera->setClearColor( osg::Vec4( 0.5, 0.5, 0.5, 1. ) ); camera->setClearMask( GL_COLOR_BUFFER_BIT ); osg::StateSet* ss = camera->getOrCreateStateSet(); ss->setAttribute( new osg::Depth(osg::Depth::LESS, 0.0, 1.0, false) );