Forgot to do top-level ray splitting.
This commit is contained in:
parent
00f8056bdb
commit
9c8797ffd8
|
@ -52,7 +52,11 @@ impl<'a> Tracer<'a> {
|
||||||
// to them in their function parameters.
|
// to them in their function parameters.
|
||||||
&mut (*rays_ptr)[..]
|
&mut (*rays_ptr)[..]
|
||||||
};
|
};
|
||||||
self.trace_assembly(self.root, wrays, ray_refs);
|
|
||||||
|
let mut ray_sets = split_rays_by_direction(&mut ray_refs[..]);
|
||||||
|
for ray_set in ray_sets.iter_mut().filter(|ray_set| ray_set.len() > 0) {
|
||||||
|
self.trace_assembly(self.root, wrays, ray_set);
|
||||||
|
}
|
||||||
|
|
||||||
return &self.isects;
|
return &self.isects;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user