Search Unity

Help Wanted Normal Map Modification Slider

Discussion in 'Shader Graph' started by Rights2PWN, Nov 19, 2019.

  1. Rights2PWN

    Rights2PWN

    Joined:
    Oct 18, 2018
    Posts:
    3
    I'm looking for assistance with a script that can reduce or increase the height levels of a normal map using a slider. Similar to the way you can change the intensity of a height map by reducing the brightness of the the greyscale to reduce the height. I'm looking to perform a similar operation but for a normal map.
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    637
    Multiply the normal maps R and G channels with a multiplier and if you plug something to B, multiply it by one. Leave B as is. I think this will scale the strength slightly but it will not change the area of the effect as would happen if you altered the "intensity" in some normal map making app that would make the emboss area spread wider etc. But it will work just fine for most situations.
     
    Last edited: Nov 19, 2019
    Rights2PWN likes this.
  3. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    2,899
    In shader graph there is a normal Strength node that handles scaling the normal map for you.
    You can just pipe a multipler value in it.
     
    Rights2PWN likes this.
unityunity