diff options
author | Julian T <julian@jtle.dk> | 2021-02-08 12:40:55 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-08 12:40:55 +0100 |
commit | 6df0417568ef6f315138d9c3fd707ac3241a6a30 (patch) | |
tree | 18d1dc2dac29cc4f2424073e66c47f0acc470cc5 /src/material/lambertian.rs | |
parent | c24d1e52b3f173ba5f4cc04f5a6a449a011a60c7 (diff) |
Fix render warnings
Diffstat (limited to 'src/material/lambertian.rs')
-rw-r--r-- | src/material/lambertian.rs | 2 |
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(), |