From e68ceb484daf001878dc961e98d35bee133ffffd Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 30 Mar 2020 02:04:54 +0200 Subject: [PATCH] executable: use dummy pahtracer renderer --- pathtracer/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pathtracer/src/main.rs b/pathtracer/src/main.rs index aa10c72..8736550 100644 --- a/pathtracer/src/main.rs +++ b/pathtracer/src/main.rs @@ -1,4 +1,4 @@ -use pathtracer::render::Raytracer; +use pathtracer::render::{Pathtracer, Raytracer}; use pathtracer::scene::Scene; use std::path::PathBuf; use std::str; @@ -39,7 +39,7 @@ fn main() -> Result<(), Box> { let scene: Scene = serde_yaml::from_reader(f)?; let image = match options.renderer { RenderOption::Raytracer => Raytracer::new(scene).render(), - RenderOption::Pathtracer => todo!(), + RenderOption::Pathtracer => Pathtracer::new(scene).render(), }; image.save(options.output)?;