Add initial MIS implementation
This commit is contained in:
parent
ba2d853319
commit
d43d60bb85
10 changed files with 161 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue