Search Unity

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

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    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:
    148
    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!
     
unityunity