Search Unity

Question Pixelated shadows

Discussion in 'Universal Render Pipeline' started by froztwolf_unity, Jun 28, 2020.

  1. froztwolf_unity

    froztwolf_unity

    Joined:
    Nov 21, 2018
    Posts:
    20
    Hi.
    I have very pixelated shadows after switching my project from HDRP to URP.
    I have two lights in the scene, both directional, both realtime. I've tried with both hard and soft shadows.
    The rectangles are GPU-instanced meshes with a custom PBR shader graph. They are dynamic, as they are scaled up and down.
    The lights are less than 15 units away from the rectangles, and the project uses no baked lighting at all.
    Any ideas how I can make the shadows look better?
    upload_2020-6-27_20-53-39.png
     
  2. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
    For the URP Asset in question, if Shadow Resolution is already high enough, try reducing Shadow Distance. The shadows will look twice as sharp with the given resolution spread over a distance of 50 vs. 100 (for example). There are other settings to try there as well like cascades etc.
     
  3. froztwolf_unity

    froztwolf_unity

    Joined:
    Nov 21, 2018
    Posts:
    20
    :O I had somehow totally managed to not realize that the shadow quality settings would be in the URP Asset.
    Searched for them everywhere (else)
    Thank you so much!
    I'm in the middle of refactoring something else, but when I have everything working nicely again I'll try with improved settings there and post an update :)