Skip to content
Snippets Groups Projects
Background.cpp 401 B
Newer Older
Postea's avatar
Postea committed
#include "Background.h"
#include <limits>

shapes::Background::Background(const std::shared_ptr<material::Material>& material)
    : material_(material)
{
}
Postea's avatar
Postea committed

std::shared_ptr<cam::Hit> shapes::Background::intersect(const cam::Ray& r)
Postea's avatar
Postea committed
{
    return std::make_shared<cam::Hit>(cam::Hit(r(std::numeric_limits<float>::infinity()), util::Vec3(0, 0, 0), std::numeric_limits<float>::infinity(), material_));
Postea's avatar
Postea committed
}