Update noise3D.glsl

Changed scaling of output to exactly match "noise3Dgrad.glsl"
master
Stefan Gustavson 2020-10-14 10:10:53 +02:00 committed by GitHub
parent 71160e9beb
commit ff3b5d34ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,6 +98,6 @@ float snoise(vec3 v)
// Mix final noise value
vec4 m = max(0.5 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);
m = m * m;
return 106.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1),
return 105.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1),
dot(p2,x2), dot(p3,x3) ) );
}