X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Fpbrmaterial.h;h=3e9b26ade8d525aff7b08c4d399d34f36e5d8f0c;hb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;hp=2a0eef3531951efbc2669644d27ff4671a552d33;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266;p=libs%2Fgl.git diff --git a/source/materials/pbrmaterial.h b/source/materials/pbrmaterial.h index 2a0eef35..3e9b26ad 100644 --- a/source/materials/pbrmaterial.h +++ b/source/materials/pbrmaterial.h @@ -29,16 +29,20 @@ private: Property roughness; Property occlusion; Property emission; - bool receive_shadows; + + static const Tag texture_tags[]; public: PbrMaterial(); protected: - virtual std::string create_program_source() const; + virtual void fill_program_info(std::string &, std::map &) const; public: - virtual void attach_textures_to(Texturing &, ProgramData &) const; + 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; void set_base_color(const Color &); void set_base_color_map(const Texture *); @@ -50,7 +54,6 @@ public: void set_occlusion_map(const Texture *); void set_emission(const Color &); void set_emission_map(const Texture *); - void set_receive_shadows(bool); }; } // namespace GL