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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug URP 2D lighting bug with Camera Stacking

Discussion in 'Universal Render Pipeline' started by Jabberwoky, May 5, 2022.

  1. Jabberwoky

    Jabberwoky

    Joined:
    Apr 6, 2020
    Posts:
    5
    It seems the _ShapeLightTexture0 is flippt on the y for the Overlay Camera.
    But strangely only in the game View.Camera preview in Sceneview and FrameDebug everything looks right.
    Culling and light-layer should be set up correct.

    Priview:
    Priview.png

    _Light:
    _Light1.png

    Gameview:
    Gameview.png


    Im using a custom 2D_lid shader but the default 2D_lid has the same result.

    Unity: 2021.2.16
    URP: 12.1.6
     
    Last edited: May 6, 2022
  2. Jabberwoky

    Jabberwoky

    Joined:
    Apr 6, 2020
    Posts:
    5
    found a workaround.
    new shader for the overlay Cam and flip the 2D light Texture manually.