Skip to content
Snippets Groups Projects
Commit 56dcba7f authored by Yoel's avatar Yoel
Browse files

Put the definitions for the Background-methods in the right namespace

parent ac4abf5c
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
#include <limits> #include <limits>
shapes::Background::Background( namespace shapes {
const std::shared_ptr<material::Material>& material) Background::Background(const std::shared_ptr<material::Material>& material)
: material(material) { : material(material) {
} }
std::shared_ptr<cam::Hit> shapes::Background::intersect( std::shared_ptr<cam::Hit> Background::intersect(const cam::Ray& r) const {
const cam::Ray& r) const {
return std::make_shared<cam::Hit>( return std::make_shared<cam::Hit>(
cam::Hit(r(std::numeric_limits<float>::infinity()), util::Vec3(0, 0, 0), cam::Hit(r(std::numeric_limits<float>::infinity()), util::Vec3(0, 0, 0),
std::numeric_limits<float>::infinity(), material)); std::numeric_limits<float>::infinity(), material));
} }
} // namespace shapes
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment