]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/pbrmaterial.h
Allow materials to return per-texture samplers
[libs/gl.git] / source / materials / pbrmaterial.h
index dadda9b52358c0b029f46971fcf4d2da73d088f1..0204451b63efa0b595f39552e374da2648d819c7 100644 (file)
@@ -32,6 +32,7 @@ private:
        Property<float> occlusion;
        Property<Color> emission;
        const Texture2D &fresnel_lookup;
+       const Sampler &fresnel_sampler;
 
        static const Tag texture_tags[];
 
@@ -47,6 +48,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 *);