diff options
author | Julian T <julian@jtle.dk> | 2020-08-06 19:21:49 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-08-06 19:22:37 +0200 |
commit | 4348cc9581bfea05359485c5d2d074132d0271da (patch) | |
tree | 0c6d92a90ac4cf9acd326f632dcdc962ddca013a /src/object.cpp | |
parent | 893176a0b18a2281abe09def716ccc3db5583c3f (diff) |
Renders scenes with a single hardcoded light and green objects
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(); |