From: ehofman Date: Fri, 21 May 2004 14:57:42 +0000 (+0000) Subject: Updates for the bump-mapped 2d cloud code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7352ead122977e16cf910c3fff19112393a9980;p=flightgear.git Updates for the bump-mapped 2d cloud code. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 1f7032f8a..36d279fcf 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -258,7 +258,8 @@ void fgInitVisuals( void ) { // For HiRes screen Dumps using Brian Pauls TR Library void trRenderFrame( void ) { #ifdef FG_ENABLE_MULTIPASS_CLOUDS - bool multi_pass_clouds = fgGetBool("/sim/rendering/multi-pass-clouds"); + bool multi_pass_clouds = fgGetBool("/sim/rendering/multi-pass-clouds") && + !SGCloudLayer::enable_bump_mapping; // ugly artefact now #else bool multi_pass_clouds = false; #endif @@ -383,7 +384,8 @@ void fgRenderFrame() { bool enhanced_lighting = fgGetBool("/sim/rendering/enhanced-lighting"); bool distance_attenuation = fgGetBool("/sim/rendering/distance-attenuation"); #ifdef FG_ENABLE_MULTIPASS_CLOUDS - bool multi_pass_clouds = fgGetBool("/sim/rendering/multi-pass-clouds"); + bool multi_pass_clouds = fgGetBool("/sim/rendering/multi-pass-clouds") && + !SGCloudLayer::enable_bump_mapping; // ugly artefact now #else bool multi_pass_clouds = false; #endif