Search Unity

Question Jagged 2D shadows

Discussion in '2D' started by Hjorth-, Jun 6, 2020.

  1. Hjorth-

    Hjorth-

    Joined:
    Sep 19, 2018
    Posts:
    2
    Hi. I have been playing around with the new 2d lights in UWRP and it works really well, but I have an issue where the light will go through my tiles:
    unknown.png
    I found out about the shadow caster 2D component but it leaves the shadow edge quite jagged:
    hard-shadow.png
    Is there a way to make it a softer shadow? I want to block out the light, so reducing shadow intensity is not an option. I did try enabling "soft shadows" on the LWRP prefab but that did not seem to have any effect.
     
    Last edited: Jun 6, 2020
    QuaternionEuler likes this.
  2. QuaternionEuler

    QuaternionEuler

    Joined:
    Aug 23, 2020
    Posts:
    3
    I have the exact same problem. Did you find any solution?

    Edit:
    Go to your Renderer 2D data -> Light Render Textures and set Render Scale to 1.
     
    Last edited: Jun 24, 2021
    Charlivi likes this.
  3. Hjorth-

    Hjorth-

    Joined:
    Sep 19, 2018
    Posts:
    2
    Hi. Unfortunately not. If I ever get back to this project, I will try what you suggested. Thanks!
     
  4. Charlivi

    Charlivi

    Joined:
    Feb 1, 2021
    Posts:
    8
    Thank you for this, it helped us a lot!
     
  5. nikitasakkas

    nikitasakkas

    Joined:
    Oct 15, 2021
    Posts:
    1
    Thanks alot!
     
  6. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,511
    Check out the 2023.1 beta - the 2D Renderer now has soft shadow support.