From: ehofman Date: Thu, 27 May 2004 18:00:03 +0000 (+0000) Subject: Tweak the bump-mapped 2d cloud color a bit. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b3abbec89059fea6a09f6e4bf33b59e2c56e2bb;p=simgear.git Tweak the bump-mapped 2d cloud color a bit. --- diff --git a/simgear/scene/sky/cloud.cxx b/simgear/scene/sky/cloud.cxx index b376b88b..319467eb 100644 --- a/simgear/scene/sky/cloud.cxx +++ b/simgear/scene/sky/cloud.cxx @@ -1012,6 +1012,7 @@ void SGCloudLayer::draw( bool top ) { sgVec4 color; ssgGetLight( 0 )->getColour( GL_DIFFUSE, color ); float average = ( color[0] + color[1] + color[2] ) / 3.0f; + average = 0.15 + average/10; sgVec4 averageColor; sgSetVec4( averageColor, average, average, average, 1.0f ); ssgGetLight( 0 )->setColour( GL_DIFFUSE, averageColor );