-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement non uniform scaled normals for all shader paths
World matrix is now always normalized in the vertex shader. Without it, offset bias shadow mapping would malfunction if the object had scaling. Switch manually multiplying matrices using float4 with explicit matrices. Code is eaiser to read and maintain. The CrossPlatform utils make it easy to work with matrix data types, which didn't exist when the original code was written. Affects #373
- Loading branch information
1 parent
16a9c7b
commit b6f12ea
Showing
4 changed files
with
84 additions
and
69 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
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