Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved High shadow filtering quality gives pixelated shadows

Discussion in 'High Definition Render Pipeline' started by kFreezer, Aug 12, 2020.

  1. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    29
    Hi!
    I've been struggling quite a bit with my shadow quality where I had nice shadows and then suddenly now I have very sharp and pixelated shadows like you can see in the screenshot below upload_2020-8-12_10-7-49.png

    The very weird thing is that when I switch to low quality filtering I have smoother shadows?!
    upload_2020-8-12_10-9-6.png

    Now my settings in the HDRP asset are the following, I've read the blog post https://blogs.unity3d.com/2020/01/0...-render-pipeline-for-high-end-visualizations/ to set it up
    upload_2020-8-12_10-15-59.png

    Also, I've read that the angular diameter should influence the PCSS filtering too but its changes nothing at all

    Finally the Unity version is 2019.3.0f6 with HDRP 7.1.8
    Any idea where I'm messing something up?
     

    Attached Files:

    Last edited: Aug 13, 2020
  2. pierred_unity

    pierred_unity

    Unity Technologies

    Joined:
    May 25, 2018
    Posts:
    430
    Hey, can you post an image of your (directional?) light inspector, showing all parameters?
     
  3. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    29
    Sure here are the settings of my directional light

    upload_2020-8-13_10-34-43.png

    I think everything is setup correctly, the Angular Diameter doesn't affect the softness of my shadows and Idk why even when I crank up the High Quality Settings

    My volume settings for the shadows seems ok too like the splits should give the atlas enough resolution for my shadows to be fine
    upload_2020-8-13_10-38-39.png
     

    Attached Files:

  4. pierred_unity

    pierred_unity

    Unity Technologies

    Joined:
    May 25, 2018
    Posts:
    430
    Thanks, yes it seems to be correctly set up.

    Now, I see your using "Both" for the lit shaders mode in your hdrp settings, rather than "Forward" or "Deferred" only. See if you still see these pixelated shadows with one of these 2 (especially Forward).
     
  5. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    I'd start by upgrading HDRP: 7.1.8 has some bugs on PCSS which are fixed on later 7.x HDRP versions.
     
  6. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    29
    Setting it to Forward only didn't made the fix

    I'll see with the devs if we can update the HDRP package to fix that PCSS issue
     
  7. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    29
    So upgrading to 7.2.1 fixed the PCSS issue but damn upgrading the hdrp will take ages as its going to import all fbx again and upgrade all the mats
     
  8. Chris_Webb

    Chris_Webb

    Joined:
    Mar 18, 2014
    Posts:
    128
    Hello,

    I am still having the problem of pixelated/poorly filtered shadows when using "High" quality filtering mode in HDRP, version 12.1.1. Medium and Low look much better.

    Thanks
     
    chadfranklin47 likes this.
  9. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    What fixed it for me was enabling TAA (don't forget to enable it for the scene view camera as well)
     
  10. DimWitDev

    DimWitDev

    Joined:
    Mar 6, 2020
    Posts:
    1
    I see that the OP has these settings already tweaked, but in case someone, who comes here later, missed it: the reason for the immediate dip in shadow quality when switching to High Quality lies in the fact that there's now a new subsection in the Shadows section of the Light component. And not only its default settings are bad, to say the least, it is also hidden behind the More Options button, which is bound to confuse new HDRP users, such as myself, as I went through every possible shadow setting in the project, before accidentally discovering the presence of the button from this video:

    The default values, set the way they were for some reason, made the shadows look jagged and pixelated and too harsh, but tweaking them was what solved it for me.

    Screenshot 2023-09-22 183236.png
     
    Kabinet13 and James_Arndt like this.