From 70a923cf26c313cfdd0b1d9aec76a6b6ef3fa171 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 2 Apr 2020 00:06:33 +0200 Subject: [PATCH] library: render: move raytracer to own directory --- pathtracer/src/render/mod.rs | 4 ++-- pathtracer/src/render/raytrace/mod.rs | 2 ++ pathtracer/src/render/{ => raytrace}/raytracer.rs | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 pathtracer/src/render/raytrace/mod.rs rename pathtracer/src/render/{ => raytrace}/raytracer.rs (99%) diff --git a/pathtracer/src/render/mod.rs b/pathtracer/src/render/mod.rs index 2e62f69..1e2b4b2 100644 --- a/pathtracer/src/render/mod.rs +++ b/pathtracer/src/render/mod.rs @@ -15,7 +15,7 @@ pub use bidirectional::*; mod pathtrace; pub use pathtrace::*; -mod raytracer; -pub use raytracer::*; +mod raytrace; +pub use raytrace::*; pub(crate) mod utils; diff --git a/pathtracer/src/render/raytrace/mod.rs b/pathtracer/src/render/raytrace/mod.rs new file mode 100644 index 0000000..0f3fcf1 --- /dev/null +++ b/pathtracer/src/render/raytrace/mod.rs @@ -0,0 +1,2 @@ +mod raytracer; +pub use self::raytracer::*; diff --git a/pathtracer/src/render/raytracer.rs b/pathtracer/src/render/raytrace/raytracer.rs similarity index 99% rename from pathtracer/src/render/raytracer.rs rename to pathtracer/src/render/raytrace/raytracer.rs index 6757772..19b50dc 100644 --- a/pathtracer/src/render/raytracer.rs +++ b/pathtracer/src/render/raytrace/raytracer.rs @@ -1,5 +1,5 @@ -use super::utils::*; -use super::Renderer; +use super::super::utils::*; +use super::super::Renderer; use crate::scene::{Object, Scene}; use crate::{ core::{LightProperties, LinearColor, ReflTransEnum},