Skip to content
Snippets Groups Projects
Background.h 375 B
Newer Older
Postea's avatar
Postea committed
#pragma once
Postea's avatar
Postea committed
#include "Shape.h"
Postea's avatar
Postea committed
namespace shapes {
class Background : public Shape {
Yoel's avatar
Yoel committed
   public:
	Background(const std::shared_ptr<material::Material>& material);
Yoel's avatar
Yoel committed
	std::optional<cam::Hit> intersect(const cam::Ray& r) const override;
Yoel's avatar
Yoel committed
	util::AxisAlignedBoundingBox bounds() const override;
Postea's avatar
Postea committed

Yoel's avatar
Yoel committed
   private:
	std::shared_ptr<material::Material> material;
Yoel's avatar
Yoel committed
}  // namespace shapes