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

Bug Unity HDRP Flickering Shadows

Discussion in 'High Definition Render Pipeline' started by JingchengYang4, Sep 10, 2023.

  1. JingchengYang4

    JingchengYang4

    Joined:
    Apr 18, 2017
    Posts:
    19
    I have some issues with Using HDRP in Unity. This is an indoor scene (probably can guess what it's for) and I'm using real time shadows with built in spot light. I tried playing around with cascade settings to no avail (though the issue does tend to worsen / alleviate based on shadow distance and near planes?). I appreciate if anyone has any ideas.




    Video Link
     
  2. valarus

    valarus

    Joined:
    Apr 7, 2019
    Posts:
    429
    Check if you've hit limit of light per tile restriction.
    Try to bake lights with mixed mode.
     
    Last edited: Sep 10, 2023
  3. JingchengYang4

    JingchengYang4

    Joined:
    Apr 18, 2017
    Posts:
    19
    I can't do baked lights because it's procedural, but I did increase light limits and it worked. Thanks
     
  4. gonogono

    gonogono

    Joined:
    Mar 29, 2023
    Posts:
    1
    Can you tell me how to solve the limit?
     
  5. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    543
    HDRP has a hard coded limit in many areas of code of 64 realtime lights ( mixed counts as realtime too).
    You are able to tune the rendering distance per light to keep it in check, and where possible you could bunch lights together using another light source like and area light.

    I can't remember exactly where it it but other than the light explorer I'm sure there's a rendering debugger that helps tunes these lights too so it's not overloading in any one area.