From: ehofman Date: Mon, 22 Sep 2003 12:32:03 +0000 (+0000) Subject: Fix a problem where the cloud layers suddenly change color when looking towards the sun X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=133e67adb89d9748f244b4f4c7d59cee7bda09e8;p=simgear.git Fix a problem where the cloud layers suddenly change color when looking towards the sun --- diff --git a/simgear/scene/sky/cloud.cxx b/simgear/scene/sky/cloud.cxx index 720e53cd..8fda6394 100644 --- a/simgear/scene/sky/cloud.cxx +++ b/simgear/scene/sky/cloud.cxx @@ -468,10 +468,10 @@ ssgSimpleState *sgCloudMakeState( const string &path ) { state->enable( GL_TEXTURE_2D ); state->enable( GL_COLOR_MATERIAL ); state->setColourMaterial( GL_AMBIENT_AND_DIFFUSE ); - state->setMaterial( GL_EMISSION, 0.05, 0.05, 0.05, 1.0 ); - state->setMaterial( GL_AMBIENT, 0.2, 0.2, 0.2, 1.0 ); - state->setMaterial( GL_DIFFUSE, 0.5, 0.5, 0.5, 1.0 ); - state->setMaterial( GL_SPECULAR, 1.0, 1.0, 1.0, 1.0 ); + state->setMaterial( GL_EMISSION, 0.05, 0.05, 0.05, 0.0 ); + state->setMaterial( GL_AMBIENT, 0.2, 0.2, 0.2, 0.0 ); + state->setMaterial( GL_DIFFUSE, 0.5, 0.5, 0.5, 0.0 ); + state->setMaterial( GL_SPECULAR, 0.0, 0.0, 0.0, 0.0 ); state->enable( GL_BLEND ); state->enable( GL_ALPHA_TEST ); state->setAlphaClamp( 0.01 );