Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

Shadow edges becomes thicker #95

Closed AntonTsirov closed 1 year ago

AntonTsirov commented 1 year ago

Hi there, I am trying out the shaders and noticed the following:

In the screenshot below you could see an example of the problem. image image

This ONLY happens when you get close to the shadows with the player.

These are the settings of the ground shader: image

These are the settings of the wall, that is casting the shadow: image

URP settings: image

Unity details:

dustyroom-studio commented 1 year ago

Hi Anton,

I see the arrows, but not sure what the problem is. Can you elaborate on the issue in text?

AntonTsirov commented 1 year ago

Hi, thank you for the fast response.

Sorry, I should have included a screenshot with how it looks without the "bug" (no idea what it is or the reason for it).

So, again the same blue wall and the shadow it casts: image Now, the same blue wall shadow, but the the player and camera are on the other side. You can see a difference in the shadow in the bottom left corner. It has some additional bumps added to it: image

And this bump happens in all other objects that cast shadows and I move close to them. I don't understand the reason for why the shadow is getting a bit bigger on the borders.

dustyroom-studio commented 1 year ago

Thanks for clarifying! The jagged lines on the shadows could happen based on your shadow resolution and cascades settings, as well as the Sharpness value (in Unity Built-in Shadows section of the material). If that happens when using a standard Unity shader as well, please check Shadow troubleshooting.

AntonTsirov commented 1 year ago

Ahh, nice! Thank you. It was indeed caused by the cascade. I reduced it to 2 and now it doesn't happen. Cheers.