Search Unity

2D Directional Light?

Discussion in 'Universal Render Pipeline' started by seloran, Jan 25, 2021.

  1. seloran

    seloran

    Joined:
    Mar 8, 2020
    Posts:
    42
    Hi, I'm rather new to Unity, so I may have some fundamental misunderstandings with how it works.

    Is it possible to add 2D directional light with the Universal RP?

    Essentially, I was hoping to get cylinder shaped shadows instead of cone shaped shadows from the current selection of 2D light sources like Point Light 2D.
     
    Last edited: Jan 25, 2021
  2. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,511
  3. MrPaparoz

    MrPaparoz

    Joined:
    Apr 14, 2018
    Posts:
    157
    Probably after they refactor whole ShadowCaster2D components. Currently it's just a let's hack something to make it work type of component that you almost have no control over how shadows behave. It doesn't respect Custom Physics Shape or Colliders. With all respect, there are 1-man assets out there that can do this.

    Still, repo changes to various 2D branches increased significantly recently, mostly bug fixes and optimizations though. But I expect (mostly hope) 2D Renderer to come out of experimental in 2021.2 with URP v12.x.
     
  4. seloran

    seloran

    Joined:
    Mar 8, 2020
    Posts:
    42
    Ah, ok, thank you.