Search Unity

Bug URP 2D normal map is flipped when I turn the object horizontally.

Discussion in '2D' started by Ningu83, Oct 8, 2021.

  1. Ningu83

    Ningu83

    Joined:
    Feb 25, 2017
    Posts:
    9
    In URP 11, there is a bug in which the top and bottom of the normal map are flipped when the object is reversed to the x-scale -1 or 180 degrees to the y-axis.

    URP 12 has the same bug.

    I also tested it with a dragon crasher. It shows the same bug.(Attached screenshots)

    Reproducible with: URP 11.0.0 (2021.1.13f1), 12.0.0 (2021.2.0b14)
     

    Attached Files:

  2. kennyy_

    kennyy_

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    96
    Hi, can you report this as a bug so we can track it internally.
     
  3. Ningu83

    Ningu83

    Joined:
    Feb 25, 2017
    Posts:
    9
  4. Ningu83

    Ningu83

    Joined:
    Feb 25, 2017
    Posts:
    9
    I submitted a bug report.
     
  5. kennyy_

    kennyy_

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    96
    Thank you.

    As a workaround, are you able to use Flip property on the Sprite Renderer to achieve the correct normals?
    upload_2021-10-13_16-2-54.png
     
  6. Ningu83

    Ningu83

    Joined:
    Feb 25, 2017
    Posts:
    9
    This function works correctly.
    However, if you need to move multiple skined sprites (such as a typical character), you need to flip the parent object, so this function is not effective.