rtiow: use hand written SIMD hit test.
This commit is contained in:
parent
ef737c6df9
commit
d3dd002883
@ -75,7 +75,6 @@ impl AABB {
|
|||||||
|
|
||||||
pub fn hit(&self, r: Ray, t_min: f32, t_max: f32) -> bool {
|
pub fn hit(&self, r: Ray, t_min: f32, t_max: f32) -> bool {
|
||||||
self.hit_simd(r, t_min, t_max)
|
self.hit_simd(r, t_min, t_max)
|
||||||
//self.hit_naive(r, t_min, t_max)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn hit_naive(&self, r: Ray, t_min: f32, t_max: f32) -> bool {
|
pub fn hit_naive(&self, r: Ray, t_min: f32, t_max: f32) -> bool {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user