From 56bed8e38f5b6d9effd77371ad781ae71601205b Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 21 Dec 2020 13:51:18 +0100 Subject: Add lambertian and metallic materials --- include/material.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/material.hpp (limited to 'include/material.hpp') 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_ -- cgit v1.3