diff options
Diffstat (limited to 'src/object.cpp')
-rw-r--r-- | src/object.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/object.cpp b/src/object.cpp index e88ae13..179785a 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -1,6 +1,7 @@ #include "object.hpp" #include <math.h> +#include <iostream> #include "common.hpp" Sphere::Sphere(Vec3d center, double radius) { @@ -15,10 +16,6 @@ Plane::Plane(Vec3d start, Vec3d norm) { m_norm.normalize(); } -void Object::setMaterial(std::shared_ptr<Material> m) { - m_mat = m; -} - Vec3d Sphere::norm_at(const Vec3d &point, const Vec3d&) const { auto res = point - m_center; res.normalize(); |