aboutsummaryrefslogtreecommitdiff
path: root/src/core/ray.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-31 17:21:11 +0100
committerJulian T <julian@jtle.dk>2021-01-31 17:21:11 +0100
commitc4369f86c920888bfaa00e46d74e3f5a1872a9ab (patch)
tree0bbfa3fa0d6db98b43b3854034def7f028a7a847 /src/core/ray.rs
parent86303936ab3180828b984ebb256bab8e69dab5cf (diff)
Add Scene type and Sphere intersect
Diffstat (limited to 'src/core/ray.rs')
-rw-r--r--src/core/ray.rs5
1 files changed, 3 insertions, 2 deletions
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,
}
+