aboutsummaryrefslogtreecommitdiffstats
path: root/include/ray.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2020-12-20 21:59:33 +0100
committerladevieq <ladevie.quentin@gmail.com>2020-12-20 21:59:33 +0100
commitc7c4f8f82c66cfe89b72d176ee51dab8bd30dc95 (patch)
treed0c2caeccda953d86806cb7c7b27c8941e0ef845 /include/ray.hpp
parentfc601fd503ec1ebd08e4daffeb9aa0812aff2b71 (diff)
Add hittable interface and hit infos on hit
Diffstat (limited to 'include/ray.hpp')
-rw-r--r--include/ray.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ray.hpp b/include/ray.hpp
index 3f8542b..b3d88ae 100644
--- a/include/ray.hpp
+++ b/include/ray.hpp
@@ -8,7 +8,7 @@ class ray {
ray(const point3& origin, const vec3& direction);
- point3 at(double t);
+ point3 at(double t) const;
point3 origin;
vec3 direction;