X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWeather%2Fweather.hxx;h=03e5714f28e1819b0b8cbdf7ac72f235d8f47a88;hb=2aca8ca2cf9ecef0f28cdc4f3f7882de0d042e33;hp=22896793614b3d401185d436eec2b89b6d766324;hpb=c90db01dc8d5462a3da22771ffa7c96f5ea31217;p=flightgear.git diff --git a/src/Weather/weather.hxx b/src/Weather/weather.hxx index 228967936..03e5714f2 100644 --- a/src/Weather/weather.hxx +++ b/src/Weather/weather.hxx @@ -25,6 +25,16 @@ #define _WEATHER_HXX +#include + +#include + +#ifdef SG_HAVE_STD_INCLUDES +# include +#else +# include +#endif + // holds the current weather values class FGWeather { @@ -45,6 +55,7 @@ public: inline double get_visibility() const { return visibility; } inline void set_visibility( double v ) { + xglMatrixMode(GL_MODELVIEW); // in meters visibility = v; @@ -56,8 +67,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 ); + // SG_LOG( SG_INPUT, SG_DEBUG, "Fog density = " << fog_density ); + // SG_LOG( SG_INPUT, SG_INFO, + // "Fog exp2 density = " << fog_exp2_density ); } };