Revert "make clearcolor black, so that space is dark instead of gray."
This reverts commit b36b33f716
.
See #316: Caused issues with sky becoming black in dense fog.
Also: when the fog issue is solved, we could configure the constant
(black) clear color once only (during init), no need to do it in every
loop. Also, entire "if (skyblend) { ... } else {..}" was redundant,
since "if" and "else" clauses were all identical - and the "clearColor"
variables were unused. => Once the fog issue is solved, we can easily
improve the clearColor configuration here.
This commit is contained in:
parent
9f13c49d29
commit
2088a61f2f
1 changed files with 2 additions and 2 deletions
|
@ -611,11 +611,11 @@ FGRenderer::update( bool refresh_camera_settings ) {
|
|||
|
||||
if ( fgGetBool("/sim/rendering/textures") ) {
|
||||
SGVec4f clearColor(l->adj_fog_color());
|
||||
camera->setClearColor(osg::Vec4(0.0, 0.0, 0.0, 1.0));
|
||||
camera->setClearColor(toOsg(clearColor));
|
||||
}
|
||||
} else {
|
||||
SGVec4f clearColor(l->sky_color());
|
||||
camera->setClearColor(osg::Vec4(0.0, 0.0, 0.0, 1.0));
|
||||
camera->setClearColor(toOsg(clearColor));
|
||||
}
|
||||
|
||||
// update fog params if visibility has changed
|
||||
|
|
Loading…
Add table
Reference in a new issue