Skip to content

Improve normal strength factor and blending#1

Open
mgreter wants to merge 5 commits intonvjob:mainfrom
OCB7D2D:bugfix/correct-normal-strength
Open

Improve normal strength factor and blending#1
mgreter wants to merge 5 commits intonvjob:mainfrom
OCB7D2D:bugfix/correct-normal-strength

Conversation

@mgreter
Copy link
Copy Markdown

@mgreter mgreter commented Apr 28, 2023

Thx for these shaders, they look very nice!
But I saw some issues with the normals.
This PR should improve that a little :)

mgreter added 5 commits April 28, 2023 06:22
Neutral normal values are 0.5,0.5,1, so can't just
multiply it by factor. Instead lerp to neutral.
By copying the original unity macro for `UnpackNormal`
we can optimize the math a little further and have
better results. We only want to lerp the xy component
of the vector and then calculate the remaining z part.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant