X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Fpbrmaterial.h;h=7c0d545936db21b5464c20bf60512f3566b94ae2;hp=3e9b26ade8d525aff7b08c4d399d34f36e5d8f0c;hb=e05c77d2e3582a6962f42dcec0fc5f7845ff448d;hpb=a5ad626b8f81de441f81847bfc859d742d8be4ba diff --git a/source/materials/pbrmaterial.h b/source/materials/pbrmaterial.h index 3e9b26ad..7c0d5459 100644 --- a/source/materials/pbrmaterial.h +++ b/source/materials/pbrmaterial.h @@ -6,6 +6,8 @@ namespace Msp { namespace GL { +class Texture2D; + class PbrMaterial: public Material { public: @@ -29,12 +31,16 @@ private: Property roughness; Property occlusion; Property 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 &) const;