Search Unity

LWRP, Shadow cascades and Spotlights.

Discussion in 'General Graphics' started by mehrankan, Mar 25, 2019.

  1. mehrankan

    mehrankan

    Joined:
    Apr 12, 2015
    Posts:
    55
    Well the title says it all, I am stuck with using a spotlight in place of a directional light as the main light in a scene, so I end up with terrible shadow quality. As far as I can tell, the spotlights in LWRP (4.10.1) do not respect the shadow cascades (just like the built-in pipeline).
    Is there something I am missing, if this IS the case, than can you guys recommend me a work around?
    I see the cascades option literally saying that it is for directional shadows, so I guess I am out of luck.
    Here is a cube with a spotlight on a simple terrain, lit by a single spot.
    upload_2019-3-25_1-18-7.png
    Here I have switched the light type to directional.
    upload_2019-3-25_1-21-11.png
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    808
    Directional lights and spotlights are rendered differently.
    Cascades are only used for directional lights.
    Spotlights are a subset of point lights, so you have to tune the settings for those to have any effect.

    Why are you trying to make a spotlight your main light in an (seemingly) outdoor scene?