From dbe5f54957ddc13549a6ce822da95170aa09a0c6 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 8 Feb 2021 14:32:11 +0100 Subject: Rename to pathtrace, started for of depth of field, choose closest intersect --- src/core/hittable.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/hittable.rs') diff --git a/src/core/hittable.rs b/src/core/hittable.rs index 20c82f7..e495d5b 100644 --- a/src/core/hittable.rs +++ b/src/core/hittable.rs @@ -1,10 +1,12 @@ use crate::core::{Vector3f, Ray}; +use crate::Float; /// Returns the context of a intersection pub struct Intersection { /// Normal vector at intersection pub n: Vector3f, pub p: Vector3f, + pub t: Float, } impl Intersection { -- cgit v1.2.3