aboutsummaryrefslogtreecommitdiff
path: root/src/core/hittable.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-08 14:32:11 +0100
committerJulian T <julian@jtle.dk>2021-02-08 14:32:11 +0100
commitdbe5f54957ddc13549a6ce822da95170aa09a0c6 (patch)
tree7cc45f25dd75cb7893fd0af49ae5353e38c5e392 /src/core/hittable.rs
parent6df0417568ef6f315138d9c3fd707ac3241a6a30 (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.rs2
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 {