Home > OS >  Effect Colour of Noise in Unity Shader Graph
Effect Colour of Noise in Unity Shader Graph

Time:02-21

I am trying to create a shader in Shader Graph that allows me to individually change the black and white channels of any Noise, similar to the Colour Ramp in Blender. I can multiply the noise by some colour, however that only effects the white part of the noise. What I want is to be able to individually effect both the black and the white part of the noise, so that I could turn some random black and white noise into, for instance, green and red. Any help would be greatly appreciated.

CodePudding user response:

To get the black in a specific color, you would run the noise through a one minus node(ostensibly getting an inverse noise), and then you can multiply it by a color and then add it together with the other colored noise of the non inverted that you managed.

The reason why you must use one minus is that when you multiply a color with your noise, the black is just 0, so multiplying anything with that just returns 0(ie black) .

  • Related