-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing incorrect normal map when using triplanar world mapping and mesh rotation #83658
Fixing incorrect normal map when using triplanar world mapping and mesh rotation #83658
Conversation
It looks like you missed my comment in the original PR. For ease of reference, the correct code (for world space) is:
You can't rely on the post-multiplication trick like in this PR as it only works for planes. |
29fdcce
to
54464f0
Compare
54464f0
to
e9fb7e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
e9fb7e3
to
73918b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't speak for the functionality but the style looks good!
This is a good point. I didn't even test the latest version. |
Thanks! |
Welp I didn't see this, just two approvals :) |
Argh 🙈 But today is our lucky day! I just tested everything and it works perfectly ⭐ |
Fixes #82311
On the original PRs (#82317) branch I unfortunately did a dumb move and it was faster moving the commit to a new branch. Sorry for the extra work @clayjohn @AThousandShips
This PR includes the feedback that @clayjohn gave on the original PR.