Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Disable shadow fade at far clip plane

Discussion in 'Universal Render Pipeline' started by mikeohc, Jun 16, 2021.

  1. mikeohc

    mikeohc

    Joined:
    Jul 1, 2020
    Posts:
    215
    Found a way to get distant shadow and real time shadow by using two cameras that have 2 different clipping planes. One to render the point light in the distance, and the other to render the spot light in real time. Follow up from this.
    1 Point light bakes all distant lighting info.
    1 Spot light looks at player to render real time shadow.

    Problem:
    Screenshot (209).png

    If I simply disable the camera that renders nearby objects, then I lose all real time shadow because point light can't render distant shadow properly.

    Screenshot (210).png

    I found this thread, but It's for built-in rp.
    Is there a way in URP to achieve blending of the shadows? Thank you.
     
  2. al3d

    al3d

    Joined:
    Feb 7, 2013
    Posts:
    51
    Hi does someone know how fix this problem on urp ? thanks