Added seeding, increased period, fixed bug in 2D gradient#6
Added seeding, increased period, fixed bug in 2D gradient#6akriegman wants to merge 4 commits intoSRombauts:masterfrom
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.