Skip to content

Commit 8563dd8

Browse files
authored
Merge pull request #8824 from VikasKSingh05/replace-noise-random-strands
Replace randomness-related noise usage in strands example
2 parents b2cdfac + 6020881 commit 8563dd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webgl/material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ function material(p5, fn) {
21152115
* // Replace alpha in the color with dithering by
21162116
* // randomly setting pixel colors to 0 based on opacity
21172117
* let a = 1;
2118-
* if (noise(pixelInputs.position.xy) > pixelInputs.color.a) {
2118+
* if (random() > pixelInputs.color.a) {
21192119
* a = 0;
21202120
* }
21212121
* pixelInputs.color.a = a;

0 commit comments

Comments
 (0)