-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix parallax and normal tangent.
Previously the tangent was not changed when the texture was rotated using the "rotation" value in texture panel. Because this vector was not rotated along the face normal it caused the normal mapping to not change the shading what ever the orientation and it caused parallax to use odd workaround to counter the wrong tangent vector. When the tangent is properly rotated around the normal thanks to the function mtex_tangent_rotate, this tangent is sent to the parallax and normal function as it. In consideration the size and mat attributes are not anymore sent to the parallax function. Note that the function mtex_mapping_transform now construct the matrix internally and justify the erasing of math_rot_mat.
- Loading branch information
1 parent
73c3843
commit a60c590
Showing
2 changed files
with
52 additions
and
38 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