rtiow: cargo fix.

This commit is contained in:
Bill Thiede 2023-01-30 19:59:40 -08:00
parent 4e6e9bf78a
commit 5ba5aa5f5d
2 changed files with 6 additions and 9 deletions

View File

@ -12,8 +12,7 @@ use crate::{
hitable::Hit,
hitable_list::HitableList,
kdtree::KDTree,
material::{Dielectric, DiffuseLight, Lambertian, Metal},
rect::{XYRect, XZRect},
material::{Dielectric, Lambertian},
renderer::{Opt, Scene},
scale::Scale,
sphere::Sphere,
@ -53,8 +52,8 @@ pub fn new(opt: &Opt) -> Scene {
false,
)
.expect("failed to parse cube");
let light_size = 50.;
let light_height = 200.;
let _light_size = 50.;
let _light_height = 200.;
let objects: Vec<Box<dyn Hit>> = vec![
// Light from above - white
// Earth sized sphere

View File

@ -12,10 +12,8 @@ use crate::{
hitable::Hit,
hitable_list::HitableList,
kdtree::KDTree,
material::{Dielectric, DiffuseLight, Lambertian, Metal},
rect::{XYRect, XZRect},
material::{Dielectric, Lambertian},
renderer::{Opt, Scene},
scale::Scale,
sphere::Sphere,
texture::{ConstantTexture, EnvMap},
vec3::Vec3,
@ -50,8 +48,8 @@ pub fn new(opt: &Opt) -> Scene {
false,
)
.expect("failed to parse cube");
let light_size = 50.;
let light_height = 200.;
let _light_size = 50.;
let _light_height = 200.;
let objects: Vec<Box<dyn Hit>> = vec![
// Light from above - white
// Earth sized sphere