diff --git a/RayTracer/shape/Background.cpp b/RayTracer/shape/Background.cpp index a84e4c7661851fdcf1359efc6c01938626a0a34f..e5ef144c999e56008cd69b38844dc18e7c408230 100644 --- a/RayTracer/shape/Background.cpp +++ b/RayTracer/shape/Background.cpp @@ -12,4 +12,7 @@ std::shared_ptr<cam::Hit> Background::intersect(const cam::Ray& r) const { cam::Hit(r(std::numeric_limits<float>::infinity()), util::Vec3(0, 0, 0), std::numeric_limits<float>::infinity(), material)); } +util::AxisAlignedBoundingBox Background::bounds() const { + return util::AxisAlignedBoundingBox(); +} } // namespace shapes \ No newline at end of file diff --git a/RayTracer/shape/Background.h b/RayTracer/shape/Background.h index 7117437fbaff601443fe30f3940c311af68a97a7..c13edf5bd255688377e5702f0728201adfff2ec9 100644 --- a/RayTracer/shape/Background.h +++ b/RayTracer/shape/Background.h @@ -7,6 +7,7 @@ class Background : public Shape { public: Background(const std::shared_ptr<material::Material>& material); std::shared_ptr<cam::Hit> intersect(const cam::Ray& r) const override; + util::AxisAlignedBoundingBox bounds() const override; private: std::shared_ptr<material::Material> material;