X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fsky.h;h=782aef1ceb1d0b0faa2c5e58a6407118834b0457;hb=adc26a2e141a2853b6c5025130c46a46cece4b84;hp=5f84c861689249bc0533d1772be61f2e401473b0;hpb=a266f0f915827b20591f6244ccc36129e844f408;p=libs%2Fgl.git diff --git a/source/effects/sky.h b/source/effects/sky.h index 5f84c861..782aef1c 100644 --- a/source/effects/sky.h +++ b/source/effects/sky.h @@ -2,15 +2,14 @@ #define MSP_GL_SKY_H_ #include "effect.h" -#include "framebuffer.h" #include "programdata.h" #include "rendertarget.h" namespace Msp { namespace GL { +class DirectionalLight; class Mesh; -class Light; class Program; /** @@ -42,7 +41,7 @@ public: private: Planet planet; - Light &sun; + DirectionalLight &sun; RenderTarget transmittance_lookup; const Program &transmittance_shprog; bool transmittance_lookup_dirty; @@ -57,7 +56,7 @@ private: bool rendered; public: - Sky(Renderable &, Light &); + Sky(Renderable &, DirectionalLight &); void set_planet(const Planet &); void set_view_height(float); @@ -67,6 +66,8 @@ public: 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