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