X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbasicmaterial.h;h=5d8d96ae5273d05e7a3106d409e5b4d40b7be450;hb=66181b3f47322ffc9b8aebf04a8c222abe1a75a2;hp=9b7eab074ed5df6c43cc6b5afaa99a7d6a5eb219;hpb=3500f13f51dabadd2e7f06b81820936520cc8115;p=libs%2Fgl.git diff --git a/source/basicmaterial.h b/source/basicmaterial.h index 9b7eab07..5d8d96ae 100644 --- a/source/basicmaterial.h +++ b/source/basicmaterial.h @@ -29,10 +29,15 @@ private: Property normal; Property emission; Property reflectivity; + bool receive_shadows; public: BasicMaterial(); +protected: + virtual std::string create_program_source() const; + +public: void attach_textures_to(Texturing &, ProgramData &) const; void set_diffuse(const Color &); @@ -46,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