Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Trouble with shadows

Discussion in 'Editor & General Support' started by Meppapza, Aug 13, 2014.

  1. Meppapza

    Meppapza

    Joined:
    Apr 18, 2014
    Posts:
    3
    Hey all,
    I have been working on a little game for a few days now, but I have been having some trouble with shadows in unity or rather the lack thereof.

    Some object cast shadows, but some don't... What am I doing wrong?

    I have included an image:


    EDIT: When I change the light type to point light, the problem is gone. I still need the spotlight though, but maybe the info would help.
     
    Last edited: Aug 13, 2014
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    - ensure all objects are on a shadow casting layer. You can determine the layer by the light culling mask.
    - ensure shadow range is sufficient in quality settings
    - ensure that they all have a shader capable of shadows.
    - triple check your scene, light angles etc by pausing it in the unity editor and flying around inspecting objects within editor scene view.
     
  3. Meppapza

    Meppapza

    Joined:
    Apr 18, 2014
    Posts:
    3
    Thanks for you reply, it only seems to happen when the light is close to a wall (not inside it yet)
    As far as I know, there isn't such a thing as a minimum shadow range right?