Search Unity

My shadows are not straight?

Discussion in 'General Graphics' started by twinmatrix, Mar 22, 2018.

  1. twinmatrix

    twinmatrix

    Joined:
    Sep 6, 2012
    Posts:
    38
    See the shadows being cast from simple squares are very jagged like:

    vvvvvvvvv

    instead of

    ________

    Any advice on how to fix this? The game is intended for Android and WebGL.
     

    Attached Files:

  2. Zee_pso

    Zee_pso

    Joined:
    Nov 12, 2016
    Posts:
    31
    Are you just using the standard (or diffuse) shader and directional light? If so, go to your directional light and mess with the shadow settings. A higher resolution or turning on soft shadows will probably fix it, but at the cost of performance, so you'll have to find the right balance for mobile.