X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fsky.h;h=be31b3085625001c9603adb1c28f4232e64862da;hb=2130839a4eff2fdaf3ddc1cd4d0ff1289cd2a881;hp=5cc7bdaa668a6d6935be713f890f9c20991fc891;hpb=bb4638a8470b0be2f960709368ec0d360a64f8ac;p=libs%2Fgl.git diff --git a/source/effects/sky.h b/source/effects/sky.h index 5cc7bdaa..be31b308 100644 --- a/source/effects/sky.h +++ b/source/effects/sky.h @@ -2,7 +2,6 @@ #define MSP_GL_SKY_H_ #include "effect.h" -#include "framebuffer.h" #include "programdata.h" #include "rendertarget.h" @@ -41,7 +40,8 @@ public: }; private: - const Light &sun; + Planet planet; + Light &sun; RenderTarget transmittance_lookup; const Program &transmittance_shprog; bool transmittance_lookup_dirty; @@ -52,17 +52,22 @@ private: const Sampler &sampler; const Sampler &wrap_sampler; mutable ProgramData shdata; + float view_height; bool rendered; public: - Sky(Resources &, Renderable &, const Light &); + Sky(Renderable &, Light &); void set_planet(const Planet &); void set_view_height(float); + Color get_transmittance(const Vector3 &); + virtual void setup_frame(Renderer &); virtual void finish_frame(); virtual void render(Renderer &, Tag = Tag()) const; + + virtual void set_debug_name(const std::string &); }; } // namespace GL