Ray-simplex intersection bugfix
This commit is contained in:
parent
b243639f8d
commit
b9ea07f0f4
1 changed files with 2 additions and 0 deletions
|
|
@ -183,6 +183,8 @@ namespace psemek::geom
|
|||
|
||||
if (sum > T{1}) return std::nullopt;
|
||||
|
||||
if (b[0] < T{}) return std::nullopt;
|
||||
|
||||
return b[0];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue