From c4369f86c920888bfaa00e46d74e3f5a1872a9ab Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 31 Jan 2021 17:21:11 +0100 Subject: Add Scene type and Sphere intersect --- src/core/ray.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/ray.rs') diff --git a/src/core/ray.rs b/src/core/ray.rs index 7d73b93..54af639 100644 --- a/src/core/ray.rs +++ b/src/core/ray.rs @@ -1,6 +1,7 @@ use crate::core::Vector3f; pub struct Ray { - origin: Vector3f, - direction: Vector3f, + pub origin: Vector3f, + pub direction: Vector3f, } + -- cgit v1.2.3