X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fsky.h;h=5f84c861689249bc0533d1772be61f2e401473b0;hp=faa3eb033d594bc73f8eb7cff6eae6b664d6be96;hb=a266f0f915827b20591f6244ccc36129e844f408;hpb=a6923e6315d5b91a0641dfcde653a897e8afeb1f diff --git a/source/effects/sky.h b/source/effects/sky.h index faa3eb03..5f84c861 100644 --- a/source/effects/sky.h +++ b/source/effects/sky.h @@ -41,7 +41,8 @@ public: }; private: - const Light &sun; + Planet planet; + Light &sun; RenderTarget transmittance_lookup; const Program &transmittance_shprog; bool transmittance_lookup_dirty; @@ -52,14 +53,17 @@ 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;