From 9235e74dfbc41895a5f8807e1ab93508268a39ea Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 3 Feb 2021 17:54:03 +0100 Subject: Base render of surface normal, and abstract shading and tracing to the trace module --- src/scene/scene.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scene/scene.rs') diff --git a/src/scene/scene.rs b/src/scene/scene.rs index a2f5b88..33a7613 100644 --- a/src/scene/scene.rs +++ b/src/scene/scene.rs @@ -22,7 +22,7 @@ impl Scene { self.shps.push(shp); } - pub fn intersect(&self, ray: Ray) -> Option { + pub fn intersect(&self, ray: &Ray) -> Option { for shp in self.shps.iter() { if let Some(t) = shp.intersect(&ray) { return Some(Intersection { -- cgit v1.2.3