Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Shadow problem

Discussion in 'Shaders' started by Efcoser, May 1, 2024.

  1. Efcoser

    Efcoser

    Joined:
    Jun 17, 2022
    Posts:
    5
    upload_2024-5-1_18-28-33.png
    upload_2024-5-1_18-32-26.png
    upload_2024-5-1_18-31-49.png

    Shadow start point is wrong. I tried changing bias to 0 it helped a little but didn't solve problem.
     
  2. POOKSHANK

    POOKSHANK

    Joined:
    Feb 8, 2022
    Posts:
    384
    maybe try switching shadows from stable fit to close fit in the settings.

    Edit > Project settings > Quality > Shadow projection
     
  3. Efcoser

    Efcoser

    Joined:
    Jun 17, 2022
    Posts:
    5
    I tried it but nothing changed, everything looks same.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,222
    Change the normal and depth bias

    Edit: did you re bake the lighting? The light you sent is baked
     
  5. Efcoser

    Efcoser

    Joined:
    Jun 17, 2022
    Posts:
    5
    I adjusted bias settings, baked again and set render mode to realtime and but nothing changed again.


    Bias: 0, Normal bias: 0, mode: Realtime
    upload_2024-5-11_17-55-3.png

    Bias: 0.1, Normal bias: 0.1, mode: Realtime
    upload_2024-5-11_17-56-13.png

    Changing bias affects shadow but i can set it to min 0 and normal bias changes nothing.



    Last of all, these are lighting settings
    upload_2024-5-11_17-59-56.png