diff --git a/pathtracer/src/render/bidirectional/bidirectional_pathtracer.rs b/pathtracer/src/render/bidirectional/bidirectional_pathtracer.rs index 880b97c..f2bff2a 100644 --- a/pathtracer/src/render/bidirectional/bidirectional_pathtracer.rs +++ b/pathtracer/src/render/bidirectional/bidirectional_pathtracer.rs @@ -29,7 +29,8 @@ impl BidirectionalPathtracer { todo!() } - fn construct_path(&self, point: Point, direction: Unit) -> Path { + #[allow(unused)] + fn construct_path(&self, point: Point, _direction: Unit) -> Path { let mut res = Path::new(point); for _ in 0..self.scene.reflection_limit { // FIXME: diff --git a/pathtracer/src/render/bidirectional/path.rs b/pathtracer/src/render/bidirectional/path.rs index 28da0d4..0bca927 100644 --- a/pathtracer/src/render/bidirectional/path.rs +++ b/pathtracer/src/render/bidirectional/path.rs @@ -10,6 +10,7 @@ pub struct PathPoint { } impl PathPoint { + #[allow(unused)] pub fn new( point: Point, incident: Unit, @@ -31,6 +32,7 @@ pub struct Path { } impl Path { + #[allow(unused)] pub fn new(origin: Point) -> Self { Path { origin, @@ -38,6 +40,7 @@ impl Path { } } + #[allow(unused)] pub fn push_point(&mut self, new_point: PathPoint) { self.points.push(new_point) } diff --git a/pathtracer/src/render/pathtrace/pathtracer.rs b/pathtracer/src/render/pathtrace/pathtracer.rs index bba0c76..a73c2db 100644 --- a/pathtracer/src/render/pathtrace/pathtracer.rs +++ b/pathtracer/src/render/pathtrace/pathtracer.rs @@ -2,7 +2,7 @@ use super::super::Renderer; use crate::scene::Scene; use image::RgbImage; -/// Render the [`Scene`] using Bidirectional-Pathtracing +/// Render the [`Scene`] using Pathtracing /// /// [`Scene`]: ../scene/scene/struct.Scene.html pub struct Pathtracer { @@ -19,7 +19,7 @@ impl Pathtracer { Pathtracer { scene } } - /// Render the [`Scene`] using Bidirectional-Pathtracing. + /// Render the [`Scene`] using Pathtracing. /// /// [`Scene`]: ../scene/scene/struct.Scene.html pub fn render(&self) -> RgbImage {