Search Unity

Question Multiple "Directional Light"s dont work OR dont generate shadows in URP

Discussion in 'Universal Render Pipeline' started by mailfromthewilds, Sep 9, 2022.

  1. mailfromthewilds

    mailfromthewilds

    Joined:
    Jan 31, 2020
    Posts:
    217
    Normal project: every directional light adds its own shadow
    URP project: Only one directional light is working or has shadows. the other directional lights/or shadows get overwritten. Now my project has 4 directional lights, but 1 shadow. but when it had 4 point lights instead, each of them generated shadow.

    I checked all the settings, seems this is either a bug or intended behavior or incomplete feature in URP

    Anyone knows anything about this? is this ever going to be implemented?
     
  2. Kyriakos80

    Kyriakos80

    Joined:
    Sep 30, 2017
    Posts:
    49
    Light cookies as well, i discovered just yesterday that only one is supported so i ended up using the emission channel on the affected materials to get the effect i wanted.
     
  3. OccaSoftware

    OccaSoftware

    Joined:
    May 24, 2019
    Posts:
    29
    I understand URP only supports single shadowmap for directional light. Based on observation, the directional light with the highest intensity is the one chosen as the directional light that gets the shadowmap. Intended behavior, but unfortunate.

    Would be very nice to have multiple directional light shadowmaps.