Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Shadow making the character look like he is floating

Discussion in 'Global Illumination' started by Ordpers, Feb 15, 2023.

  1. Ordpers

    Ordpers

    Joined:
    Aug 10, 2019
    Posts:
    6
    I can't figure out why the shadow is not connected to the legs. My character is perfectly standing on the ground and not floating at all. How can I fix this?
     

    Attached Files:

  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Most likely your shadow bias needs adjusting.This will affect how well the shadow sticks the shadow casting object's parts near the ground (among other things.) Your shadow also looks like it's quite low res.

    Check this manual section:
    https://docs.unity3d.com/Manual/ShadowPerformance.html
     
  3. Ordpers

    Ordpers

    Joined:
    Aug 10, 2019
    Posts:
    6
    I did set bias to 0 and still shadow is not sticking to the character. I tried to tweak but to no avail
     
  4. jiaozi158

    jiaozi158

    Joined:
    May 24, 2020
    Posts:
    23
    You can also try decreasing the shadow distance.
     
  5. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,115
    Gonna be a total troll...but turning on RT shadows removes this completely :)