]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/pbrmaterial.cpp
Move the receive_shadows flag to RenderPass
[libs/gl.git] / source / materials / pbrmaterial.cpp
index 92801204ee0ddb7764e543c271a916363591741a..7c73996fd2f7b8e91af2ab4eb27d08fd5592de70 100644 (file)
@@ -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<string, int> &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