]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/sky.h
Add debug name capability to more classes
[libs/gl.git] / source / effects / sky.h
index 5cc7bdaa668a6d6935be713f890f9c20991fc891..74580d7502a165fb1b8e1d48f8206c600ab7397d 100644 (file)
@@ -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,17 +53,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