X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fsky.h;h=be31b3085625001c9603adb1c28f4232e64862da;hb=f96d553dbf78f9d664d1dbb1fe002fc43f23ad47;hp=faa3eb033d594bc73f8eb7cff6eae6b664d6be96;hpb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;p=libs%2Fgl.git diff --git a/source/effects/sky.h b/source/effects/sky.h index faa3eb03..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(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