UnityURPToonLitShaderExample
UnityURPToonLitShaderExample copied to clipboard
optimize GetOutlineCameraFovAndDistanceFixMultiplier
In some extreme conditions(eg. Very small FOV), the original GetOutlineCameraFovAndDistanceFixMultiplier will become too thin. Also, the atan() function to get FOV is actually unnecessary in this use case. (Mutiplying outline width directly to FOV is not really correct to preserve line width) I've included the math into the comments of the .hlsl file, please review this optimization, thank you!
Hi, I've attached some gifs for you to review ( notice the outline width )
↑Before modification
↑After modification
Thank you! I will study this change and maybe merge the pull request directly.