diff options
Diffstat (limited to 'include/lambertian.hpp')
| -rw-r--r-- | include/lambertian.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/lambertian.hpp b/include/lambertian.hpp new file mode 100644 index 0000000..b9b7509 --- /dev/null +++ b/include/lambertian.hpp @@ -0,0 +1,15 @@ +#ifndef __LAMBERTIAN_HPP_ +#define __LAMBERTIAN_HPP_ + +#include "material.hpp" + +class lambertian : public material { + public: + lambertian(const color& albedo); + + virtual bool scatter(const ray& r, const struct hit_info& info, color& attenuation, ray& scattered) const; + + color albedo; +}; + +#endif // !__LAMBERTIAN_HPP_ |
