Tweak the bump-mapped 2d cloud color a bit.

This commit is contained in:
ehofman 2004-05-27 18:00:03 +00:00
parent 6935baba5b
commit 9b3abbec89

View 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 );