Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[SOLVED] Turn off alert for normal Maps

Discussion in 'Shaders' started by flogel, Jul 28, 2019.

  1. flogel

    flogel

    Joined:
    Aug 10, 2018
    Posts:
    109
    I'm reconstructing my normals in shader from an rgb map, that uses something else in the blue channel. Works fine and dandy, but Unity always throws alerts at me when I'm saving, that my shader uses a map for normals, that isn't marked as a normal map (which i obviously can't do, because it throws my blue channel away-)

    Is there a quick fix for this? This really is just about the Unity notices. Also in the inspector, he offers me the possibility to fix my map, which also isn't necessary to be there.
     
  2. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,052
    Remove the [Normal] part from the normal map property in the shader. If that doesn't fix it, rename _Normal to something else. Or you can make a custom inspector.
     
    flogel likes this.
  3. flogel

    flogel

    Joined:
    Aug 10, 2018
    Posts:
    109
    Thanks!:) Tried a bit around and ended up with _BumpTex! _NormalMap and _BumpMap seem to trigger these notifications!
     
unityunity