-
Notifications
You must be signed in to change notification settings - Fork 167
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
No shadows #4
Comments
Edited: Incorrect fix, see "Sunnhild" 's reply for correct fix:I found a solution for directional light shadow: in shell's Lit.hlsl From Line 120 to Line 123 (the author's file)
Change it to:
Don't know if it is correct, but it works. ( I cannot write shader code ) After adding the code, you will have this result: Terrible self-shadow ( can be fixed ) You can adjust the Shadow Extra Bias to avoid some self-shadow No terrible self-shadow ( for this model, Shadow Extra Bias = -0.5) The point light shadow works as expected ( no change needed) By the way, this is the best shell fur shader I've ever seen. |
amazing thank you - looks great |
Thank you for your comment! If possible, could you let me know which shader and which version of Unity (and URP) you are using? This is because the shadow is handled in |
oh so I am on 2021.1.26f1 URP and I never had any shadows appear on the fur (using shell) |
Thank you! Something may have changed since 2021.x. I'll update the project at hand and look into it when I have time. |
I found a similar issue on Unity Forum and they provide a solution. |
This is the solution from your link, it works great! replace |
Is there a way to get shadows showing on this please? specifically I am using the shell method.
The text was updated successfully, but these errors were encountered: