From 27ea5c5d93bfee1187703013aedd14341b935fed Mon Sep 17 00:00:00 2001 From: hal8174 Date: Tue, 7 Jan 2025 23:13:10 +0100 Subject: [PATCH] Minor update to MIS Test scene --- ray-tracing-scene/src/examples/mis_test.rs | 31 +++++++++------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/ray-tracing-scene/src/examples/mis_test.rs b/ray-tracing-scene/src/examples/mis_test.rs index afef578..8bba5df 100644 --- a/ray-tracing-scene/src/examples/mis_test.rs +++ b/ray-tracing-scene/src/examples/mis_test.rs @@ -41,22 +41,22 @@ impl MISTest { materials: || { vec![ BVHMaterial::new_material(Mirror::new(Color::white())), + BVHMaterial::new_material(Microfacet::new( + BeckmannDistribution::new(0.005175), + Color::white(), + )), + BVHMaterial::new_material(Microfacet::new( + BeckmannDistribution::new(0.0125), + Color::white(), + )), + BVHMaterial::new_material(Microfacet::new( + BeckmannDistribution::new(0.025), + Color::white(), + )), BVHMaterial::new_material(Microfacet::new( BeckmannDistribution::new(0.05), Color::white(), )), - BVHMaterial::new_material(Microfacet::new( - BeckmannDistribution::new(0.1), - Color::white(), - )), - BVHMaterial::new_material(Microfacet::new( - BeckmannDistribution::new(0.2), - Color::white(), - )), - BVHMaterial::new_material(Microfacet::new( - BeckmannDistribution::new(0.3), - Color::white(), - )), ] }, } @@ -118,13 +118,6 @@ impl ExampleScene for MISTest { let theta = (theta_camera + theta_light) * 0.5; - dbg!( - i, - theta_camera.to_degrees(), - theta_light.to_degrees(), - theta.to_degrees() - ); - let offset_x = self.plane_depth * Float::cos(theta); let offset_y = self.plane_depth * Float::sin(theta);