From bacaaae3a1d014b982280f7ada920933eb38e638 Mon Sep 17 00:00:00 2001 From: Vikas Date: Sun, 24 May 2026 16:12:13 +0530 Subject: [PATCH] Replace randomness-related noise usage in strands example --- src/webgl/material.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgl/material.js b/src/webgl/material.js index 000a12fb7c..07f43244eb 100644 --- a/src/webgl/material.js +++ b/src/webgl/material.js @@ -2115,7 +2115,7 @@ function material(p5, fn) { * // Replace alpha in the color with dithering by * // randomly setting pixel colors to 0 based on opacity * let a = 1; - * if (noise(pixelInputs.position.xy) > pixelInputs.color.a) { + * if (random() > pixelInputs.color.a) { * a = 0; * } * pixelInputs.color.a = a;