Search Unity

[SOLVED] Turn off alert for normal Maps

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

  1. flogelz

    flogelz

    Joined:
    Aug 10, 2018
    Posts:
    142
    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,550
    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.
     
    flogelz likes this.
  3. flogelz

    flogelz

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