spec_values["use_reflectivity_map"] = (reflectivity.texture!=0);
}
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-void BasicMaterial::attach_textures_to(Texturing &texturing, ProgramData &tex_shdata) const
-{
- attach_texture_to(diffuse.texture, texturing, tex_shdata, "diffuse_map");
- attach_texture_to(specular.texture, texturing, tex_shdata, "specular_map");
- attach_texture_to(normal.texture, texturing, tex_shdata, "normal_map");
- attach_texture_to(emission.texture, texturing, tex_shdata, "emission_map");
- attach_texture_to(shininess.texture, texturing, tex_shdata, "shininess_map");
- attach_texture_to(reflectivity.texture, texturing, tex_shdata, "reflectivity_map");
-}
-#pragma GCC diagnostic pop
-
const Texture *BasicMaterial::get_texture(Tag tag) const
{
if(tag==texture_tags[0])
DataFile::Loader::ActionMap BasicMaterial::Loader::shared_actions;
-BasicMaterial::Loader::Loader(BasicMaterial &m):
- DerivedObjectLoader<BasicMaterial, Material::PropertyLoader<BasicMaterial> >(m)
-{
- set_actions(shared_actions);
-}
-
BasicMaterial::Loader::Loader(BasicMaterial &m, Collection &c):
DerivedObjectLoader<BasicMaterial, Material::PropertyLoader<BasicMaterial> >(m, c)
{