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/hittable.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/hittable.hpp') diff --git a/include/hittable.hpp b/include/hittable.hpp index 4978e57..aa55034 100644 --- a/include/hittable.hpp +++ b/include/hittable.hpp @@ -1,13 +1,18 @@ #ifndef __HITTABLE_HPP_ #define __HITTABLE_HPP_ +#include + #include "ray.hpp" +class material; + struct hit_info { double t; point3 point; vec3 normal; bool front_face; + std::shared_ptr mat_ptr; inline void set_face_normal(const ray& r, const vec3& outward_normal) { front_face = r.direction.dot(outward_normal) < 0.0; -- cgit v1.3