X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Fmaterial.h;h=ff7f53c0d3ffdb23acf15f55c649f6aacaa1708d;hp=75ff972cd4e1312de7e6d63a74480bf3c3b0409a;hb=HEAD;hpb=ae423e6ef278388f92802fbae34b1c7ec339292f diff --git a/source/materials/material.h b/source/materials/material.h index 75ff972c..3210c966 100644 --- a/source/materials/material.h +++ b/source/materials/material.h @@ -28,6 +28,7 @@ private: private: void alpha_cutoff(float); + void alpha_cutoff_feather(float, float); void sampler(const std::string &); }; @@ -74,6 +75,7 @@ public: protected: const Sampler *sampler = 0; float alpha_cutoff = 0.0f; + float alpha_feather = 1.0f; ProgramData shdata; Material(); @@ -98,8 +100,10 @@ public: virtual const Texture *get_texture(Tag) const = 0; virtual const Sampler *get_sampler(Tag) const { return sampler; } - void set_alpha_cutoff(float a); + void set_alpha_cutoff(float); + void set_alpha_feather(float); float get_alpha_cutoff() const { return alpha_cutoff; } + float get_alpha_feather() const { return alpha_feather; } void set_debug_name(const std::string &);