aboutsummaryrefslogtreecommitdiff
path: root/src/main.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/main.rs
parentfdb3e8cb8d53449c107388e143345beae162f95e (diff)
Finished initial film, reorganization and started work on shapes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index 0ac71df..c984176 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,16 +1,12 @@
-use pathtrace::camera::filter::Filter;
use pathtrace::camera::film::Film;
-use pathtrace::vector::{Vector2i, Vector2f};
+use pathtrace::vector::{Vector2i};
use pathtrace::bound::Bound2i;
-use std::rc::Rc;
fn main() {
- let filter = Rc::new(Filter::new_box(Vector2f::new(2.5)));
-
- let film = Film::new(Vector2i::new(100), filter.clone());
+ let film = Film::new(Vector2i::new(100));
let tile = film.get_tile(&Bound2i::new_xyxy(10, 10, 100, 100));
- println!("Yo {}", tile.bounds.min.x);
+ //println!("Yo {}", tile.bounds.min.x);
}