aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-08 12:40:55 +0100
committerJulian T <julian@jtle.dk>2021-02-08 12:40:55 +0100
commit6df0417568ef6f315138d9c3fd707ac3241a6a30 (patch)
tree18d1dc2dac29cc4f2424073e66c47f0acc470cc5 /src
parentc24d1e52b3f173ba5f4cc04f5a6a449a011a60c7 (diff)
Fix render warnings
Diffstat (limited to 'src')
-rw-r--r--src/core/spectrum.rs1
-rw-r--r--src/material/lambertian.rs2
-rw-r--r--src/scene/scene.rs2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/core/spectrum.rs b/src/core/spectrum.rs
index c33d3af..bea056e 100644
--- a/src/core/spectrum.rs
+++ b/src/core/spectrum.rs
@@ -2,7 +2,6 @@
//!
//! Currently only implements RGB colors
use crate::Float;
-use std::ops;
// TODO implement SampledSpectrum instead for nicer images
diff --git a/src/material/lambertian.rs b/src/material/lambertian.rs
index 28d15d3..65a59cc 100644
--- a/src/material/lambertian.rs
+++ b/src/material/lambertian.rs
@@ -21,7 +21,7 @@ impl Lambertian {
}
impl Material for Lambertian {
- fn scatter(&self, ray: &Ray, i: &Intersection, sampler: &mut dyn Sampler) -> Option<(Spectrum, Ray)> {
+ fn scatter(&self, _: &Ray, i: &Intersection, sampler: &mut dyn Sampler) -> Option<(Spectrum, Ray)> {
let mut newray = Ray {
origin: i.p,
direction: i.n + sampler.get_unit_vector(),
diff --git a/src/scene/scene.rs b/src/scene/scene.rs
index 0ffbe97..8575217 100644
--- a/src/scene/scene.rs
+++ b/src/scene/scene.rs
@@ -1,4 +1,4 @@
-use crate::core::{Ray, Intersection, Hittable};
+use crate::core::{Ray, Intersection};
use crate::material::Material;
use super::Object;