Search Unity

Normal maps at -1 scale

Discussion in 'General Graphics' started by 82MiddleMan, Jul 14, 2020.

  1. 82MiddleMan

    82MiddleMan

    Joined:
    Jul 6, 2015
    Posts:
    23
    I've just started experimenting with normal maps in my 2D game using the 2D renderer and lights. I've made them secondary textures in the sprite editor and they work fine at normal scale. When I 'flip' the sprite by making the scale.x -1, the lighting then flips up and down. Left and right is still fine. I need to do this a lot for when characters are facing the other way, so I'm hoping it's an easy fix?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
  3. 82MiddleMan

    82MiddleMan

    Joined:
    Jul 6, 2015
    Posts:
    23
    That sucks. I guess I would have to do a version of that for the new 2D renderers shaders, and I don't have a clue about shaders. I'm running into so many issues using the 2d renderer with normal maps (it is experimental). Maybe I'll go back to the standard renderer and try a different approach. What's the standard tried and tested way of getting good 2D lighting with some sort of bump map effect?