Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix divided by zero problem on non-normalizable direction vector.
While normalizing the direction vector, we have to make sure we don't divide the components by zero length to avoid any assertion of "NaN".
- Loading branch information
1 parent
c1b196b
commit 03cf0a8
Showing
1 changed file
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters