]> git.tdb.fi Git - libs/gl.git/blobdiff - source/basicmaterial.h
Add a flag to BasicMaterial to enable shadow map
[libs/gl.git] / source / basicmaterial.h
index 5fca56a0300127e54fd7f0b06be52bb4e97586e1..5d8d96ae5273d05e7a3106d409e5b4d40b7be450 100644 (file)
@@ -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