diff options
Diffstat (limited to 'include/sphere.hpp')
| -rw-r--r-- | include/sphere.hpp | 5 |
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_ |
