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

2D URP12 - Strange light behavior with normal mapping Unity 2021.3.4f1

Discussion in '2D' started by y4n3k, Jul 8, 2022.

  1. y4n3k

    y4n3k

    Joined:
    Mar 9, 2017
    Posts:
    6
    Hello Everyone,

    I have strange problem with my project.
    I'm trying to set up normal maps for 2D lighting.
    At some point I noticed that spot light from the SpotLight2D is working incorrectly:


    It does have normal map, however, color is set to default, so light should be split evenly on surface, that's the map:


    I've created new empty 2D URP project, and recreated the same, using the same texture and normal map, results - exactly as expected:


    I guess I've changed or added something somewhere that is causing this strange behavior of the light. I've searched everywhere and can't find anything, looking for some ideas what could be causing this? :)
     
  2. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    Is the texture type set to "Normal Map" in the texture import settings?
     
  3. y4n3k

    y4n3k

    Joined:
    Mar 9, 2017
    Posts:
    6
    That was it!!!! Thanks mate! Such a silly mistake from my side :oops: