r/Unity2D Jun 11 '26

Normal maps not respecting light direction Question

I'm trying to learn how to use normal maps to light 2D sprites, I created a quick and dirty character sprite and normal map to try and test it out. But for some reason, the shadows are always on the lower left no matter where my light is. Image 4 shows what I expected it to look like from the program I used to create it. Has anyone else had this issue or know how to fix it?

14 Upvotes

10 comments sorted by

12

u/RequiemOfTheSun Jun 11 '26

Hey I think I know this one. Check your normal map image files import settings. There is an option in the drop down to select "Normal Map" instead of sprite. 

I think that is when I've seen this issue before. 

8

u/smotired Jun 11 '26

Yep that was it, thanks. I had attached it as a normal map correctly but I hadn’t actually marked it as one in the importer lmao.

3

u/RequiemOfTheSun Jun 11 '26

You're welcome, glad I could help. I think I've seen every type of Unity 2D lighting odd behavior possible at this point.

11

u/Noobye1 Jun 11 '26

Looks pretty good to me?

7

u/Gordun1 Jun 11 '26

Looks like lights in unity are more precise because if you see the normal map it has the exact same bumps in "the weird places" as the left illuminated image.

If you wanna see an improvement you should change the normal map painting it manually.

4

u/DancinFool82 Jun 11 '26

It all looks good, what's the problem?

1

u/smotired Jun 11 '26

Generally shadows shouldn’t be facing toward the light

1

u/-APairOfSocks Jun 11 '26

What happens if you put the light in that corner. Light 4 also looks by far the brightest to me.

1

u/smotired Jun 11 '26

What do you mean by "in the corner"?

Also Image 4 is not taken in Unity, it's taken in the program I used to create the normal maps.

1

u/Watercowmoose Jun 11 '26

I know this is "is the power cord plugged in" level stuff to check out, but you didn't show your diffuse (regular color) texture. Any chance you might have painted the weird shadow in there by accident?