]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/pbrmaterial.h
Remove collection-less constructor overloads from most loaders
[libs/gl.git] / source / materials / pbrmaterial.h
index dadda9b52358c0b029f46971fcf4d2da73d088f1..9669bc35a3a1086e117c73cc8aa2e2f4d677d315 100644 (file)
@@ -17,7 +17,6 @@ public:
                static ActionMap shared_actions;
 
        public:
-               Loader(PbrMaterial &);
                Loader(PbrMaterial &, Collection &);
 
        private:
@@ -32,6 +31,7 @@ private:
        Property<float> occlusion;
        Property<Color> emission;
        const Texture2D &fresnel_lookup;
+       const Sampler &fresnel_sampler;
 
        static const Tag texture_tags[];
 
@@ -47,6 +47,7 @@ protected:
 public:
        virtual const Tag *get_texture_tags() const { return texture_tags; }
        virtual const Texture *get_texture(Tag) const;
+       virtual const Sampler *get_sampler(Tag) const;
 
        void set_base_color(const Color &);
        void set_base_color_map(const Texture *);