rtiow: cargo fix.
This commit is contained in:
parent
4e6e9bf78a
commit
5ba5aa5f5d
@ -12,8 +12,7 @@ use crate::{
|
|||||||
hitable::Hit,
|
hitable::Hit,
|
||||||
hitable_list::HitableList,
|
hitable_list::HitableList,
|
||||||
kdtree::KDTree,
|
kdtree::KDTree,
|
||||||
material::{Dielectric, DiffuseLight, Lambertian, Metal},
|
material::{Dielectric, Lambertian},
|
||||||
rect::{XYRect, XZRect},
|
|
||||||
renderer::{Opt, Scene},
|
renderer::{Opt, Scene},
|
||||||
scale::Scale,
|
scale::Scale,
|
||||||
sphere::Sphere,
|
sphere::Sphere,
|
||||||
@ -53,8 +52,8 @@ pub fn new(opt: &Opt) -> Scene {
|
|||||||
false,
|
false,
|
||||||
)
|
)
|
||||||
.expect("failed to parse cube");
|
.expect("failed to parse cube");
|
||||||
let light_size = 50.;
|
let _light_size = 50.;
|
||||||
let light_height = 200.;
|
let _light_height = 200.;
|
||||||
let objects: Vec<Box<dyn Hit>> = vec![
|
let objects: Vec<Box<dyn Hit>> = vec![
|
||||||
// Light from above - white
|
// Light from above - white
|
||||||
// Earth sized sphere
|
// Earth sized sphere
|
||||||
|
|||||||
@ -12,10 +12,8 @@ use crate::{
|
|||||||
hitable::Hit,
|
hitable::Hit,
|
||||||
hitable_list::HitableList,
|
hitable_list::HitableList,
|
||||||
kdtree::KDTree,
|
kdtree::KDTree,
|
||||||
material::{Dielectric, DiffuseLight, Lambertian, Metal},
|
material::{Dielectric, Lambertian},
|
||||||
rect::{XYRect, XZRect},
|
|
||||||
renderer::{Opt, Scene},
|
renderer::{Opt, Scene},
|
||||||
scale::Scale,
|
|
||||||
sphere::Sphere,
|
sphere::Sphere,
|
||||||
texture::{ConstantTexture, EnvMap},
|
texture::{ConstantTexture, EnvMap},
|
||||||
vec3::Vec3,
|
vec3::Vec3,
|
||||||
@ -50,8 +48,8 @@ pub fn new(opt: &Opt) -> Scene {
|
|||||||
false,
|
false,
|
||||||
)
|
)
|
||||||
.expect("failed to parse cube");
|
.expect("failed to parse cube");
|
||||||
let light_size = 50.;
|
let _light_size = 50.;
|
||||||
let light_height = 200.;
|
let _light_height = 200.;
|
||||||
let objects: Vec<Box<dyn Hit>> = vec![
|
let objects: Vec<Box<dyn Hit>> = vec![
|
||||||
// Light from above - white
|
// Light from above - white
|
||||||
// Earth sized sphere
|
// Earth sized sphere
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user