Add initial MIS implementation

This commit is contained in:
hal8174 2025-01-05 23:52:41 +01:00
parent ba2d853319
commit d43d60bb85
10 changed files with 161 additions and 3 deletions

View file

@ -37,6 +37,7 @@ impl<R: Rng> Scene<R> for BasicScene {
((ray.start() + d * ray.dir()) - c).normalize(),
Some(&DefaultMaterial {}),
None,
0.0,
);
if d >= min && d <= max {
if let Some(i) = intersection.as_ref() {