Search Unity

Question Soft 2D shadow edges

Discussion in '2D' started by piotrzulawski, Sep 30, 2020.

  1. piotrzulawski

    piotrzulawski

    Joined:
    Aug 27, 2019
    Posts:
    3
    Hello all,

    I have started playing with the LWRP and ShadowCasters. I had a go at producing shadows on a tilemap (wall tiles casting shadows) which went well, with one exception.

    All the light variants (take the point light as an example) allow for the setting of the fall-off of intensity with distance. The shadows however are quite sharp-edged. I would like to be able to create a softer transition between the lit region and the shadow, perhaps by applying some sort of alpha variation to the shadow texture.

    I am relatively new to playing with lighting in Unity and wouldn't know where to start; neither the Rendering Pipeline nor the ShadowCaster seem to have an option that would do what I am looking for. The Rendering Pipeline has a tickbox for 'Soft Shadows', but that doesn't seemto affect the appearence of my shadows. Would anyone be able to suggest an entry point for this?

    Thanks!