aboutsummaryrefslogtreecommitdiffstats
path: root/include/ray.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2020-12-20 14:49:20 +0100
committerladevieq <ladevie.quentin@gmail.com>2020-12-20 14:49:20 +0100
commit3935a609141623e7cfb3fa339da1a166e3917018 (patch)
treeba8d6275b1f9947af92f9c887608f71f73e6609d /include/ray.hpp
parent2d8e108dd6811bcf55bed28f1855a36077f8c674 (diff)
Ray tracer renderer
Use ray for rendering Setup basic rendering stuff camera / viewport
Diffstat (limited to 'include/ray.hpp')
-rw-r--r--include/ray.hpp17
1 files changed, 17 insertions, 0 deletions
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_