heyx3 / GPUNoiseForUnity

A Unity plugin for generating noise on the GPU for use in the editor.
Other
109 stars 17 forks source link

[Suggestion] Noise seed #5

Closed Bamboy closed 7 years ago

Bamboy commented 7 years ago

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 7 years ago

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 7 years ago

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