Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. 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:
    382
    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,204
    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