Skip to content

Commit d81c615

Browse files
committed
Use consistent normalization math for strands noise backends
1 parent 5320dd7 commit d81c615

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webgpu/shaders/functions/noise3DWGSL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ fn noise(st: vec3<f32>, octaves: i32, ampFalloff: f32) -> f32 {
102102
frequency *= 2.0;
103103
amplitude *= ampFalloff;
104104
}
105-
return result * 0.5 + 0.5;
105+
return (result + 1.0) * 0.5;
106106
}`;

0 commit comments

Comments
 (0)