Remove unused vars and use statements.
This commit is contained in:
parent
27c1534273
commit
b7002df00e
@ -1,4 +1,3 @@
|
||||
use image;
|
||||
use rand;
|
||||
|
||||
use crate::camera::Camera;
|
||||
@ -16,7 +15,6 @@ use crate::renderer::Opt;
|
||||
use crate::renderer::Scene;
|
||||
use crate::sphere::Sphere;
|
||||
use crate::texture::ConstantTexture;
|
||||
use crate::texture::ImageTexture;
|
||||
use crate::texture::Mandelbrot;
|
||||
use crate::texture::NoiseTexture;
|
||||
use crate::vec3::Vec3;
|
||||
@ -46,8 +44,6 @@ pub fn new(opt: &Opt) -> Scene {
|
||||
Box::new(ConstantTexture::new(Vec3::new(0.4, 1.0, 0.4)))
|
||||
};
|
||||
|
||||
let world_image_bytes = include_bytes!("../../images/world.jpg");
|
||||
let it = ImageTexture::new(image::load_from_memory(world_image_bytes).unwrap().to_rgb());
|
||||
let noise_source = Perlin::new(rng);
|
||||
let noise_type = NoiseType::Scale(10.);
|
||||
let objects: Vec<Box<Hit>> = vec![
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user