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

Shadows from directional Light in my game, don't look smooth

Discussion in 'Global Illumination' started by eagamedev, Jul 1, 2016.

  1. eagamedev

    eagamedev

    Joined:
    Jun 23, 2016
    Posts:
    14
    Hello!

    I'm pretty new to unity and i'm having an issue with shadows on my game.

    I made a room to test. I have a directional light, that represents the Sun.

    The problem is that the shadows that this light causes, don't look smooth, like this(best example shadows in the couch):
    upload_2016-7-1_11-45-24.png


    I searched everywhere but can't find a solution. Mostly because i don't know what the problem is, or what it is called..

    The house's walls, windows, are all made with the standard shader..

    The shadows look bad also in Scene view.. so i'm a bit lost..

    I've tried attaching the AA image effect to the camera, but doen't fix this.

    How can I fix this horrible shadows?

    Thank you!!

    Ez
     
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,919
    Go to Edit > Project Settings > Quality and click Fantastic. Make sure shadows are set to High or Very High Resolution.
     
  3. eagamedev

    eagamedev

    Joined:
    Jun 23, 2016
    Posts:
    14
    Hello! Thank you for your suggestion. I had already tried that, but it didn't work, i've dived through quality settings before posting.

    My project is for an android device. Does it change something?
     
  4. Pawige

    Pawige

    Joined:
    Nov 26, 2012
    Posts:
    40
    eagamedev likes this.
  5. eagamedev

    eagamedev

    Joined:
    Jun 23, 2016
    Posts:
    14
    Yes! The Shadow Distance helped a lot! I had tryed the Shadow cascades adjustment but it didn't help.

    Thank you very much Pawige! This was driving me crazy.
    I'll research a bit about this Shadow Distance and why is it affecting my shadows so much!
     
  6. eagamedev

    eagamedev

    Joined:
    Jun 23, 2016
    Posts:
    14
    This fixed the problem in game view from my PC.
    But when building and running on my android devices, the problem comes back.
    I read that Android doesn't suppor Shadow Cascades. Is there any other way to fix this for Android apps?

    Thank you!
     
    look001 likes this.