pathtracer/pathtracer/src/render/mod.rs

19 lines
448 B
Rust
Raw Normal View History

//! Define the different kinds of renderers for use on a given scene.
2020-03-29 21:23:42 +02:00
use image::RgbImage;
/// Each renderer implements this trait, to be called after being built.
pub trait Renderer {
/// Render the [`Scene`] using the chosen rendering technique.
///
/// [`Scene`]: ../scene/scene/struct.Scene.html
fn render(&self) -> RgbImage;
}
mod pathtrace;
pub use pathtrace::*;
mod raytracer;
pub use raytracer::*;
pub(crate) mod utils;