-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added seeding, increased period, fixed bug in 2D gradient #6
base: master
Are you sure you want to change the base?
Conversation
Hello, |
It wasn't compiling because I made |
Is there any reason this PR hasn't been merged in? I'm looking for seedable simplex noise, and this looks like it would do the trick! The only code change that I don't understand is this one:
(The |
My PR probably shouldn't be merged in for two reasons: first, it changes the usage by making certain functions non-static, which is necessary so they can use
So I'm not totally sure because this was so long ago, but I think what's happening here is that the original conditional |
ah ok that's fair. I might create a PR of my own, loosely based on yours?
The comment is definitely outdated (it's certainly taking the low 6 bits, and not the low 3...). but regarding the intent of the original |
Okay I think I remember why I made that change. The idea of that function is to take the dot product with one of the eight vectors Do you mean the perm array? You could make that a member of the object. It's up to you if global seeding works for what you're doing, but instance seeding is useful if you need multiple noise fields or a noise vector field (with one |
No description provided.