Minor update to MIS Test scene

This commit is contained in:
hal8174 2025-01-07 23:13:10 +01:00
parent 4759c79b87
commit 27ea5c5d93

View file

@ -41,22 +41,22 @@ impl<R: Rng> MISTest<R> {
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<R: Rng + 'static> ExampleScene<R> for MISTest<R> {
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);