X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Fpbrmaterial.cpp;h=7c73996fd2f7b8e91af2ab4eb27d08fd5592de70;hb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;hp=92801204ee0ddb7764e543c271a916363591741a;hpb=6f39983060a27634c012f66c82fea0d09fea9774;p=libs%2Fgl.git diff --git a/source/materials/pbrmaterial.cpp b/source/materials/pbrmaterial.cpp index 92801204..7c73996f 100644 --- a/source/materials/pbrmaterial.cpp +++ b/source/materials/pbrmaterial.cpp @@ -16,8 +16,7 @@ const Tag PbrMaterial::texture_tags[] = Tag() }; -PbrMaterial::PbrMaterial(): - receive_shadows(false) +PbrMaterial::PbrMaterial() { set_base_color(0.8f); set_metalness(0.0f); @@ -36,7 +35,6 @@ void PbrMaterial::fill_program_info(string &module_name, map &spec_ bool use_emission = (emission.texture || emission.value.r || emission.value.g || emission.value.b); spec_values["use_emission"] = use_emission; spec_values["use_emission_map"] = (emission.texture!=0); - spec_values["use_shadow_map"] = receive_shadows; } #pragma GCC diagnostic push @@ -124,11 +122,6 @@ void PbrMaterial::set_emission_map(const Texture *tex) emission.texture = tex; } -void PbrMaterial::set_receive_shadows(bool s) -{ - receive_shadows = s; -} - DataFile::Loader::ActionMap PbrMaterial::Loader::shared_actions; @@ -153,7 +146,6 @@ void PbrMaterial::Loader::init_actions() add_property("roughness", &PbrMaterial::set_roughness, &PbrMaterial::set_roughness_map); add_property("occlusion", &PbrMaterial::set_occlusion_map); add_property("emission", &PbrMaterial::set_emission, &PbrMaterial::set_emission_map, false); - add("receive_shadows", &PbrMaterial::receive_shadows); } } // namespace GL