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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question (unity 2020.3 URP) Why baked shadows so soft and blur?

Discussion in 'Global Illumination' started by LittleNiu, Sep 9, 2021.

  1. LittleNiu

    LittleNiu

    Joined:
    Oct 18, 2014
    Posts:
    5
    Hi, I new to lighting bake and I use 2020.3 with URP.
    My scene have one directional light. When using realtime light, the shadows of these grasses look hard and dark, this is the result I want. But after bake the scene , shadows look so diffrent.

    Realtime Light:


    After Bake:


    Heigher Ligthmap Resolution not help.

    What can I do to get the result more close to the realtime lighting? :(
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,064
    What kind of light is it? What is its baked shadow angle?
     
  3. LittleNiu

    LittleNiu

    Joined:
    Oct 18, 2014
    Posts:
    5
    one Directional light.

    I use 2020.3 with URP . I can't find setting of shadow angle.o_O

    And this is the Lightmapping Settings, almost same with default setting.I have try set Lightmap Resolution heigher, not work too.


    My goal is to get the baking results close to real time lighting(No pursuit of realism,I bake lighting only for performance reason). I wonder if it might be due to the influence of GI, can I close GI when baking light?
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,064
    In Lightmapping Settings, change filtering from Auto to None.

    With that said, you're probably not going to get super close to the realtime results, but you can definitely get closer.

    Also if you want shadows to be as dark as realtime, you need to reduce indirect intensity, or maybe even reduce bounces to 0.
     
    Pema-Malling and LittleNiu like this.
  5. LittleNiu

    LittleNiu

    Joined:
    Oct 18, 2014
    Posts:
    5
    Thanks! You are right. Set Filtering to None work OK.:)
     
    Pema-Malling and AcidArrow like this.