Skip to content

Commit 197a765

Browse files
committed
Try smaller value range
1 parent 79d2fe2 commit 197a765

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

test/unit/visual/cases/noise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ visualSuite('Noise', function() {
1919
p5.createCanvas(50, 50, p5.WEBGL);
2020
const shader = p5.baseFilterShader().modify(() => {
2121
p5.getColor((inputs) => {
22-
const value = p5.clamp(p5.noise(inputs.texCoord * 4) * 2, 0, 1);
22+
const value = p5.clamp(p5.noise(inputs.texCoord * 0.5 + 0.5) * 2, 0, 1);
2323
return [value, value, value, 1];
2424
});
2525
}, { p5 });
-1.35 KB
Loading

0 commit comments

Comments
 (0)