Transitioning from Shader Graph to coding HLSL, how do I get Gradient Noise?

In the documentation for Shader Graph there’s a code snippet presenting what the Gradient Noise Node looks in code
Link: Gradient Noise Node | Shader Graph | 6.9.2

Should I just plug that in and use that as my gradient noise? is this the standard for the pros out there coding in hlsl?

You certainly can just use that code. It’s not “the standard” though. There is no standard. That’s one possible implementation of perlin noise of an essentially infinite number of possible implementations. If you’re not interested in writing your own, sure, just copy and paste. That is something pros do. :wink:

2 Likes

Thank you! And thank you for helping the community out so much!

1 Like