We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2cdfac + 6020881 commit 8563dd8Copy full SHA for 8563dd8
1 file changed
src/webgl/material.js
@@ -2115,7 +2115,7 @@ function material(p5, fn) {
2115
* // Replace alpha in the color with dithering by
2116
* // randomly setting pixel colors to 0 based on opacity
2117
* let a = 1;
2118
- * if (noise(pixelInputs.position.xy) > pixelInputs.color.a) {
+ * if (random() > pixelInputs.color.a) {
2119
* a = 0;
2120
* }
2121
* pixelInputs.color.a = a;
0 commit comments