Skip to content

Commit f11d7de

Browse files
authored
New permutation (much improved randomness)
1 parent ff3b5d3 commit f11d7de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psrdnoise2D.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ vec3 mod289(vec3 x) {
7474

7575
// Permutation polynomial (ring size 289 = 17*17)
7676
vec3 permute(vec3 x) {
77-
return mod289(((x*34.0)+1.0)*x);
77+
return mod289(((x*34.0)+6.0)*x);
7878
}
7979

8080
// Hashed 2-D gradients with an extra rotation.

0 commit comments

Comments
 (0)