Skip to content
Snippets Groups Projects
Sphere.h 349 B
Newer Older
Yoel's avatar
Yoel committed
#pragma once

#include "Shape.h"

namespace shapes {
class Sphere : public Shape {
Yoel's avatar
Yoel committed
   public:
	Sphere(float radius, const std::shared_ptr<material::Material>& material);
	std::shared_ptr<cam::Hit> intersect(const cam::Ray& r) const override;
Yoel's avatar
Yoel committed

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