aboutsummaryrefslogtreecommitdiff
path: root/src/material/lambertian.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/material/lambertian.rs')
-rw-r--r--src/material/lambertian.rs2
1 files changed, 1 insertions, 1 deletions
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(),