1 #ifndef MSP_GL_PBRMATERIAL_H_
2 #define MSP_GL_PBRMATERIAL_H_
9 class PbrMaterial: public Material
12 class Loader: public DataFile::DerivedObjectLoader<PbrMaterial, Material::PropertyLoader<PbrMaterial> >
15 static ActionMap shared_actions;
18 Loader(PbrMaterial &);
19 Loader(PbrMaterial &, Collection &);
22 virtual void init_actions();
26 Property<Color> base_color;
27 Property<Vector3> normal;
28 Property<float> metalness;
29 Property<float> roughness;
30 Property<float> occlusion;
31 Property<Color> emission;
33 static const Tag texture_tags[];
39 virtual void fill_program_info(std::string &, std::map<std::string, int> &) const;
42 DEPRECATED virtual void attach_textures_to(Texturing &, ProgramData &) const;
44 virtual const Tag *get_texture_tags() const { return texture_tags; }
45 virtual const Texture *get_texture(Tag) const;
47 void set_base_color(const Color &);
48 void set_base_color_map(const Texture *);
49 void set_normal_map(const Texture *);
50 void set_metalness(float);
51 void set_metalness_map(const Texture *);
52 void set_roughness(float);
53 void set_roughness_map(const Texture *);
54 void set_occlusion_map(const Texture *);
55 void set_emission(const Color &);
56 void set_emission_map(const Texture *);