aboutsummaryrefslogtreecommitdiff
path: root/src/scene/shapes/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scene/shapes/mod.rs')
-rw-r--r--src/scene/shapes/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/scene/shapes/mod.rs b/src/scene/shapes/mod.rs
index 76fb6f2..7fbb8db 100644
--- a/src/scene/shapes/mod.rs
+++ b/src/scene/shapes/mod.rs
@@ -5,8 +5,6 @@ pub use sphere::Sphere;
use crate::core::Ray;
use crate::Float;
-trait Shape {
- //
- fn intersect(ray: Ray) -> Float;
- fn intersect_
+pub trait Shape {
+ fn intersect(&self, ray: &Ray) -> Option<Float>;
}