1 /***************************************************************************** 2 * $LastChangedDate: 2011-04-22 12:24:45 -0400 (Fri, 22 Apr 2011) $ 3 * @file 4 * @author Jim E. Brooks http://www.palomino3d.org 5 * @brief Module configuration. 6 *//* 7 * LEGAL: COPYRIGHT (C) 2009 JIM E. BROOKS 8 * THIS SOURCE CODE IS RELEASED UNDER THE TERMS 9 * OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2). 10 *****************************************************************************/ 11 12 #ifndef SHADER_CONF_HH 13 #define SHADER_CONF_HH 1 14 15 #define SHADER_CONF shader::GET_CONF() 16 17 #include <osg/Fog> 18 #include "base/conf_txt.hh" 19 #include "gfx/module.hh" 20 #include "gfx/rgba.hh" 21 using namespace gfx; 22 23 namespace shader { 24 25 //////////////////////////////////////////////////////////////////////////////// 26 /// @brief Module configuration. 27 /// 28 class Conf 29 { 30 #include "base/conf_template_txt.hh" 31 public: 32 bool mEnableShaders; ///< enable shaders 33 bool mEnableLighting; ///< enable lighting 34 osg::Vec3 mLight0Position; 35 bool mEnableFog; 36 RGBA mFogColor; 37 fpx mFogDensity; 38 osg::Fog::Mode mFogMode; 39 fp mFogMin; ///< unit range (isn't a density) 40 fp mBrightness; 41 }; 42 #include "base/conf_template_end.hh" 43 44 } // namespace shader 45 46 #endif // SHADER_CONF_HH 47