]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/basicmaterial.cpp
Move the receive_shadows flag to RenderPass
[libs/gl.git] / source / materials / basicmaterial.cpp
index 5ad694b685803e892032b24a0d199cda86befca7..30202a568f62a7964700f7f765cc3af84c3350f6 100644 (file)
@@ -16,8 +16,7 @@ const Tag BasicMaterial::texture_tags[] =
        Tag()
 };
 
-BasicMaterial::BasicMaterial():
-       receive_shadows(false)
+BasicMaterial::BasicMaterial()
 {
        set_diffuse(Color(1.0f));
        set_specular(Color(0.0f));
@@ -40,7 +39,6 @@ void BasicMaterial::fill_program_info(string &module_name, map<string, int> &spe
        spec_values["use_emission_map"] = (emission.texture!=0);
        spec_values["use_reflectivity"] = (reflectivity.value!=0 || reflectivity.texture!=0);
        spec_values["use_reflectivity_map"] = (reflectivity.texture!=0);
-       spec_values["use_shadow_map"] = receive_shadows;
 }
 
 #pragma GCC diagnostic push
@@ -134,11 +132,6 @@ void BasicMaterial::set_reflectivity_map(const Texture *tex)
        reflectivity.texture = tex;
 }
 
-void BasicMaterial::set_receive_shadows(bool s)
-{
-       receive_shadows = s;
-}
-
 
 DataFile::Loader::ActionMap BasicMaterial::Loader::shared_actions;
 
@@ -163,7 +156,6 @@ void BasicMaterial::Loader::init_actions()
        add_property("emission", &BasicMaterial::set_emission, &BasicMaterial::set_emission_map, false);
        add_property("shininess", &BasicMaterial::set_shininess, &BasicMaterial::set_shininess_map);
        add_property("reflectivity", &BasicMaterial::set_reflectivity, &BasicMaterial::set_reflectivity_map);
-       add("receive_shadows", &BasicMaterial::receive_shadows);
 }
 
 } // namespace GL