Search Unity

Shadows and Object Size

Discussion in 'General Graphics' started by AvGaz, Jan 2, 2019.

  1. AvGaz

    AvGaz

    Joined:
    Dec 21, 2012
    Posts:
    74
    Does scale of objects effect shadows?

    I have a scene with hard shadows and the shadows are very blocky.

    I wondered if I made the objects bigger (they are scaled small) would the shadows appear better or does it make no difference? (larger scaling with more distance from shadows, although the shadows would be bigger too) Thanks
     
    Marthdes likes this.
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    11,041
    It depends.

    Directional shadows span a particular range in front of the camera, set in the Quality settings. If your object is very small, and this range is large, then yes. You could scale up the object, or reduce the Shadow Distance.
    https://docs.unity3d.com/Manual/DirLightShadows.html

    However if you have a small object that's far away, this is a difficult situation as the directional shadows always go from the camera to the shadow distance range.
     
    Marthdes and AvGaz like this.
  3. AvGaz

    AvGaz

    Joined:
    Dec 21, 2012
    Posts:
    74
    Thanks for the detailed response!
     
    Marthdes likes this.
unityunity