diff options
author | Julian T <julian@jtle.dk> | 2021-02-08 14:32:11 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-08 14:32:11 +0100 |
commit | dbe5f54957ddc13549a6ce822da95170aa09a0c6 (patch) | |
tree | 7cc45f25dd75cb7893fd0af49ae5353e38c5e392 /src/core/hittable.rs | |
parent | 6df0417568ef6f315138d9c3fd707ac3241a6a30 (diff) |
Rename to pathtrace, started for of depth of field, choose closest intersect
Diffstat (limited to 'src/core/hittable.rs')
-rw-r--r-- | src/core/hittable.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |