virtual void init_actions();
private:
+ void alpha_cutoff(float);
void sampler(const std::string &);
};
protected:
const Sampler *sampler = 0;
+ float alpha_cutoff = 0.0f;
ProgramData shdata;
- Material() = default;
+ Material();
public:
virtual ~Material() = default;
virtual const Texture *get_texture(Tag) const = 0;
virtual const Sampler *get_sampler(Tag) const { return sampler; }
+ void set_alpha_cutoff(float a);
+ float get_alpha_cutoff() const { return alpha_cutoff; }
+
void set_debug_name(const std::string &);
template<typename T>