Search Unity

[SOLVED] Turn off alert for normal Maps

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

  1. Flohneh

    Flohneh

    Joined:
    Aug 10, 2018
    Posts:
    79
    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:
    894
    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.
     
    Flohneh likes this.
  3. Flohneh

    Flohneh

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