X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWeather%2Fweather.hxx;h=110de62a81051902e7c267af09891766371cf42a;hb=52039b1fe598c872ccce136296e39ec7e7f8c6e4;hp=22896793614b3d401185d436eec2b89b6d766324;hpb=c90db01dc8d5462a3da22771ffa7c96f5ea31217;p=flightgear.git diff --git a/src/Weather/weather.hxx b/src/Weather/weather.hxx index 228967936..110de62a8 100644 --- a/src/Weather/weather.hxx +++ b/src/Weather/weather.hxx @@ -45,6 +45,7 @@ public: inline double get_visibility() const { return visibility; } inline void set_visibility( double v ) { + xglMatrixMode(GL_MODELVIEW); // in meters visibility = v; @@ -56,8 +57,11 @@ public: // Set correct opengl fog density xglFogf (GL_FOG_DENSITY, fog_exp2_density); + xglFogi( GL_FOG_MODE, GL_EXP2 ); - // FG_LOG( FG_INPUT, FG_DEBUG, "Fog density = " << w->fog_density ); + // FG_LOG( FG_INPUT, FG_DEBUG, "Fog density = " << fog_density ); + // FG_LOG( FG_INPUT, FG_INFO, + // "Fog exp2 density = " << fog_exp2_density ); } };