library: rename 'render' module to 'scene'
This commit is contained in:
parent
aa47b54e4c
commit
a59bd026bc
|
@ -11,7 +11,7 @@ pub type Point2D = nalgebra::Point2<f32>;
|
|||
pub mod core;
|
||||
pub mod light;
|
||||
pub mod material;
|
||||
pub mod render;
|
||||
pub mod scene;
|
||||
pub mod serialize;
|
||||
pub mod shape;
|
||||
pub mod texture;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use pathtracer::render::Scene;
|
||||
use pathtracer::scene::Scene;
|
||||
use std::path::PathBuf;
|
||||
use structopt::StructOpt;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ impl LightAggregate {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # use pathtracer::render::LightAggregate;
|
||||
/// # use pathtracer::scene::LightAggregate;
|
||||
/// #
|
||||
/// let la = LightAggregate::empty();
|
||||
/// assert_eq!(la.ambient_lights_iter().count(), 0);
|
||||
|
@ -40,7 +40,7 @@ impl LightAggregate {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # use pathtracer::render::LightAggregate;
|
||||
/// # use pathtracer::scene::LightAggregate;
|
||||
/// #
|
||||
/// let la = LightAggregate::new(
|
||||
/// Vec::new(),
|
|
@ -30,7 +30,7 @@ impl Object {
|
|||
/// ```
|
||||
/// # use pathtracer::core::{LightProperties, LinearColor};
|
||||
/// # use pathtracer::material::UniformMaterial;
|
||||
/// # use pathtracer::render::Object;
|
||||
/// # use pathtracer::scene::Object;
|
||||
/// # use pathtracer::shape::Sphere;
|
||||
/// # use pathtracer::texture::UniformTexture;
|
||||
/// # use pathtracer::Point;
|
|
@ -37,7 +37,7 @@ impl Scene {
|
|||
/// ```
|
||||
/// # use pathtracer::core::{Camera, LightProperties, LinearColor};
|
||||
/// # use pathtracer::material::UniformMaterial;
|
||||
/// # use pathtracer::render::{LightAggregate, Object, Scene};
|
||||
/// # use pathtracer::scene::{LightAggregate, Object, Scene};
|
||||
/// # use pathtracer::shape::Sphere;
|
||||
/// # use pathtracer::texture::UniformTexture;
|
||||
/// # use pathtracer::Point;
|
||||
|
@ -354,7 +354,7 @@ mod test {
|
|||
#[test]
|
||||
fn empty_scene() {
|
||||
use crate::core::Camera;
|
||||
use crate::render::{LightAggregate, Scene};
|
||||
use crate::scene::{LightAggregate, Scene};
|
||||
|
||||
let _scene = Scene::new(
|
||||
Camera::default(),
|
Loading…
Reference in a new issue