New permutation (improved randomness)

master
Stefan Gustavson 2021-06-30 16:05:32 +02:00 committed by GitHub
parent 50e20a343e
commit eabde9e297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ vec3 mod7(vec3 x) {
// Permutation polynomial: (34x^2 + 6x) mod 289
vec3 permute(vec3 x) {
return mod289((34.0 * x + 6.0) * x);
return mod289((34.0 * x + 10.0) * x);
}
// Cellular noise, returning F1 and F2 in a vec2.