]> git.tdb.fi Git - libs/gl.git/blobdiff - source/basicmaterial.h
Only mark changed fields dirty when unloading a sampler
[libs/gl.git] / source / basicmaterial.h
index 5fca56a0300127e54fd7f0b06be52bb4e97586e1..73bb38e911d439ca38e70eed5278598ccd17a891 100644 (file)
@@ -9,7 +9,7 @@ namespace GL {
 class BasicMaterial: public Material
 {
 public:
-       class Loader: public DataFile::DerivedObjectLoader<BasicMaterial, Material::LoaderBase<BasicMaterial> >
+       class Loader: public DataFile::DerivedObjectLoader<BasicMaterial, Material::PropertyLoader<BasicMaterial> >
        {
        private:
                static ActionMap shared_actions;
@@ -29,6 +29,7 @@ private:
        Property<Vector3> normal;
        Property<Color> emission;
        Property<float> reflectivity;
+       bool receive_shadows;
 
 public:
        BasicMaterial();
@@ -50,6 +51,7 @@ public:
        void set_shininess_map(const Texture *);
        void set_reflectivity(float);
        void set_reflectivity_map(const Texture *);
+       void set_receive_shadows(bool);
 };
 
 } // namespace GL