aboutsummaryrefslogtreecommitdiff
path: root/src/scene/shapes/mod.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-30 15:37:07 +0100
committerJulian T <julian@jtle.dk>2021-01-30 15:37:07 +0100
commit86303936ab3180828b984ebb256bab8e69dab5cf (patch)
treee4bfb08d9c73edd12aef944e0d698c03753032da /src/scene/shapes/mod.rs
parentfdb3e8cb8d53449c107388e143345beae162f95e (diff)
Finished initial film, reorganization and started work on shapes
Diffstat (limited to 'src/scene/shapes/mod.rs')
-rw-r--r--src/scene/shapes/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scene/shapes/mod.rs b/src/scene/shapes/mod.rs
new file mode 100644
index 0000000..76fb6f2
--- /dev/null
+++ b/src/scene/shapes/mod.rs
@@ -0,0 +1,12 @@
+mod sphere;
+
+pub use sphere::Sphere;
+
+use crate::core::Ray;
+use crate::Float;
+
+trait Shape {
+ //
+ fn intersect(ray: Ray) -> Float;
+ fn intersect_
+}