New permutation (improved randomness)
This commit is contained in:
parent
548a70c2d9
commit
61ae2a4bf1
@ -18,7 +18,7 @@ vec2 mod289(vec2 x) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vec3 permute(vec3 x) {
|
vec3 permute(vec3 x) {
|
||||||
return mod289(((x*34.0)+6.0)*x);
|
return mod289(((x*34.0)+10.0)*x);
|
||||||
}
|
}
|
||||||
|
|
||||||
float snoise(vec2 v)
|
float snoise(vec2 v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user