New permutation (much improved randomness)

master
Stefan Gustavson 2021-06-29 11:08:49 +02:00 committed by GitHub
parent c11ba2306c
commit 50e20a343e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,11 +17,11 @@ float mod289(float x) {
return x - floor(x * (1.0 / 289.0)) * 289.0; }
vec4 permute(vec4 x) {
return mod289(((x*34.0)+1.0)*x);
return mod289(((x*34.0)+6.0)*x);
}
float permute(float x) {
return mod289(((x*34.0)+1.0)*x);
return mod289(((x*34.0)+6.0)*x);
}
vec4 taylorInvSqrt(vec4 r)