heyx3/GPUNoiseForUnity

[Suggestion] Noise seed

Bamboy opened this issue · 2 comments

As a noise generation utility, I am really suprised this isnt in here already.
Add the ability to specify what seed to use when generating noise. (Perhaps it would be best if this was a hard-coded int scalar param?)

heyx3 commented

You can currenrly incorporate a seed by adding an extra dimension to the noise, using the seed as that extra dimension value. You could also add or multiply the seed value with the input into the noise function.

However, it's probably a good idea to add a built-in "seed" param that is used in the basic float-hashing functions underlying all noise generation. I'll do that asap.

On an unrelated note, I'm sorry I didn't see your contributions earlier! This is basically the first time other people have contributed to my repo.

heyx3 commented

35ad519 added support for a UV Z coordinate, which can easily be used as a seed.