-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate light and face normals to fix some problems
Face normals are the "correct" normals, and are always calculated using the inverse transpose of the position matrix. Light normals are what the game typically deals with, and they are calculated using the normal matrix. Any code wanting to know the true surface normal of a primitive should use the face normal, not the light normal.
- Loading branch information
1 parent
ebd10c8
commit bc69ca9
Showing
2 changed files
with
102 additions
and
53 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
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