Fix incorrect background color handling in glossy reflections.

Bug introduced in the previous refector removing the LightPath struct.
This commit is contained in:
Nathan Vegdahl 2022-08-03 00:07:03 -07:00
parent 77ac8ef9f2
commit 9569f772f0

View File

@ -500,7 +500,8 @@ fn trace_camera_light_path(
.background_color
.to_spectral_sample(ray.wavelength)
.e
* mis_pdf;
* attenuation
/ mis_pdf;
break;
}