Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Realtime Directional Light not casting shadows

Discussion in 'Universal Render Pipeline' started by madruytb, May 28, 2021.

  1. madruytb

    madruytb

    Joined:
    May 10, 2018
    Posts:
    26
    So, I have two directional lights on my scene:
    One is a baked (it was mixed before I created the realtime, so it handled both environment and characters) directional light set for environment and masked to not apply on characters.
    The other is a realtime directional light masked only for characters.

    The problem is, for some reason this realtime light doesn't cast shadows as the baked did back when it was mixed. How can I get shadows from this realtime light?

    My baking mode is set to Indirect, if that helps.
     
  2. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    On URP you can have only one directional light casting shadows. I think it applies to both real-time and baked shadows.
     
  3. madruytb

    madruytb

    Joined:
    May 10, 2018
    Posts:
    26
    Ouch, alright, thank you!