executable: use dummy pahtracer renderer

This commit is contained in:
Bruno BELANYI 2020-03-30 02:04:54 +02:00
parent b624ced37f
commit e68ceb484d

View file

@ -1,4 +1,4 @@
use pathtracer::render::Raytracer; use pathtracer::render::{Pathtracer, Raytracer};
use pathtracer::scene::Scene; use pathtracer::scene::Scene;
use std::path::PathBuf; use std::path::PathBuf;
use std::str; use std::str;
@ -39,7 +39,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let scene: Scene = serde_yaml::from_reader(f)?; let scene: Scene = serde_yaml::from_reader(f)?;
let image = match options.renderer { let image = match options.renderer {
RenderOption::Raytracer => Raytracer::new(scene).render(), RenderOption::Raytracer => Raytracer::new(scene).render(),
RenderOption::Pathtracer => todo!(), RenderOption::Pathtracer => Pathtracer::new(scene).render(),
}; };
image.save(options.output)?; image.save(options.output)?;