aboutsummaryrefslogtreecommitdiffstats
path: root/include/sphere.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/sphere.hpp')
-rw-r--r--include/sphere.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sphere.hpp b/include/sphere.hpp
index 5bf0ab9..c33a796 100644
--- a/include/sphere.hpp
+++ b/include/sphere.hpp
@@ -2,15 +2,18 @@
#define __SPHERE_HPP_
#include "hittable.hpp"
+#include "material.hpp"
class sphere : public hittable {
public:
- sphere(point3 center, double radius = 1.0);
+ sphere(point3 center, double radius, std::shared_ptr<material> material);
virtual bool hit(const ray& r, double t_min, double t_max, struct hit_info& info) const;
point3 center;
double radius;
+
+ std::shared_ptr<material> mat_ptr;
};
#endif // !__SPHERE_HPP_