Search Unity

Shadows not showing properly from Directional Light.

Discussion in 'General Graphics' started by Robin_Williams, Nov 18, 2019.

  1. Robin_Williams

    Robin_Williams

    Joined:
    Nov 5, 2019
    Posts:
    5


    In this video you can see that the sun appears to be moving with the camera, and that shadows only cast at certain positions/angles. If i move to the left the shadow disappears and another shows, if i move forward the same happens too.

    Where am I going wrong here?
     
  2. Robin_Williams

    Robin_Williams

    Joined:
    Nov 5, 2019
    Posts:
    5
    It is only happening with trees, I have a point light that works in a torch and it casts shadows on the wooden support beams of the house. They stay where they are and do not produce the same effect as trees.
     
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    That's called a specular highlight. It's being caused by having your road too shiny (ie: your smoothness is set too high).
     
  4. Robin_Williams

    Robin_Williams

    Joined:
    Nov 5, 2019
    Posts:
    5
    I tried to edit the smoothness value but it really did not change much, perhaps its the normal or just the texture issue?
     
  5. Robin_Williams

    Robin_Williams

    Joined:
    Nov 5, 2019
    Posts:
    5
    For anyone having this problem I have fixed it by doing this:

    try bump up the intensity of your directional light

    also try increasing the billboard start for trees within your terrain settings (mine is 180)

    choose hard shadows for most objects.

    thats pretty much it