]> git.mxchange.org Git - simgear.git/commitdiff
Tweak the bump-mapped 2d cloud color a bit.
authorehofman <ehofman>
Thu, 27 May 2004 18:00:03 +0000 (18:00 +0000)
committerehofman <ehofman>
Thu, 27 May 2004 18:00:03 +0000 (18:00 +0000)
simgear/scene/sky/cloud.cxx

index b376b88b0db2a3448fb54d1d8fb4c3d4ef1064ee..319467eba145c46d192bef5f5c01aeb1a629beda 100644 (file)
@@ -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 );