New permutation (improved randomness)

master
Stefan Gustavson 2021-06-30 16:10:31 +02:00 committed by GitHub
parent 205dea398d
commit 3e2528debc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ vec3 mod289(vec3 x) {
// Permutation polynomial (ring size 289 = 17*17)
vec3 permute(vec3 x) {
return mod289(((x*34.0)+6.0)*x);
return mod289(((x*34.0)+10.0)*x);
}
// Hashed 2-D gradients with an extra rotation.