From 3935a609141623e7cfb3fa339da1a166e3917018 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 20 Dec 2020 14:49:20 +0100 Subject: Ray tracer renderer Use ray for rendering Setup basic rendering stuff camera / viewport --- include/ray.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/ray.hpp (limited to 'include/ray.hpp') diff --git a/include/ray.hpp b/include/ray.hpp new file mode 100644 index 0000000..3f8542b --- /dev/null +++ b/include/ray.hpp @@ -0,0 +1,17 @@ +#ifndef __RAY_HPP_ +#define __RAY_HPP_ + +#include "vec3.hpp" + +class ray { + public: + + ray(const point3& origin, const vec3& direction); + + point3 at(double t); + + point3 origin; + vec3 direction; +}; + +#endif // !__RAY_HPP_ -- cgit v1.3