From e3179d5b2ea911be00f03cebed38c5c2b7d88c38 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Tue, 23 Jul 2019 08:52:53 +0900 Subject: [PATCH] Fix stupid bug with sphere lights introduced in the traversal rewrite. --- src/light/sphere_light.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/light/sphere_light.rs b/src/light/sphere_light.rs index e17371f..cbb5b2f 100644 --- a/src/light/sphere_light.rs +++ b/src/light/sphere_light.rs @@ -224,7 +224,7 @@ impl<'a> Surface for SphereLight<'a> { let radius = lerp_slice(self.radii, time); // Radius of the sphere // Get the ray origin and direction in local space - let orig = rays.orig(ray_idx).into_vector(); + let orig = rays.orig_local(ray_idx).into_vector(); let dir = rays.dir(ray_idx) * xform; // Code adapted to Rust from https://github.com/Tecla/Rayito