New permutation (much improved randomness)
This commit is contained in:
parent
ff3b5d34ea
commit
f11d7dee21
@ -74,7 +74,7 @@ vec3 mod289(vec3 x) {
|
|||||||
|
|
||||||
// Permutation polynomial (ring size 289 = 17*17)
|
// Permutation polynomial (ring size 289 = 17*17)
|
||||||
vec3 permute(vec3 x) {
|
vec3 permute(vec3 x) {
|
||||||
return mod289(((x*34.0)+1.0)*x);
|
return mod289(((x*34.0)+6.0)*x);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hashed 2-D gradients with an extra rotation.
|
// Hashed 2-D gradients with an extra rotation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user