geom/ray: correct test for negative aabb distance
This commit is contained in:
parent
cfefca7767
commit
9f6697dc2a
@ -109,7 +109,7 @@ namespace util::geom {
|
||||
return std::numeric_limits<T>::infinity ();
|
||||
|
||||
// closest is behind us
|
||||
if (tmax < 0)
|
||||
if (tmin < 0)
|
||||
return tmax;
|
||||
|
||||
// closest is in front of us
|
||||
|
Loading…
Reference in New Issue
Block a user