]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/pbrmaterial.h
Remove some deprecated stuff that's getting in the way
[libs/gl.git] / source / materials / pbrmaterial.h
index 3e9b26ade8d525aff7b08c4d399d34f36e5d8f0c..dadda9b52358c0b029f46971fcf4d2da73d088f1 100644 (file)
@@ -6,6 +6,8 @@
 namespace Msp {
 namespace GL {
 
+class Texture2D;
+
 class PbrMaterial: public Material
 {
 public:
@@ -29,18 +31,20 @@ private:
        Property<float> roughness;
        Property<float> occlusion;
        Property<Color> emission;
+       const Texture2D &fresnel_lookup;
 
        static const Tag texture_tags[];
 
 public:
        PbrMaterial();
 
+private:
+       static const Texture2D &get_or_create_fresnel_lookup();
+
 protected:
        virtual void fill_program_info(std::string &, std::map<std::string, int> &) const;
 
 public:
-       DEPRECATED virtual void attach_textures_to(Texturing &, ProgramData &) const;
-
        virtual const Tag *get_texture_tags() const { return texture_tags; }
        virtual const Texture *get_texture(Tag) const;