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.
1 parent 2f12bd4 commit f55ae35Copy full SHA for f55ae35
src/webgl/material.js
@@ -1558,9 +1558,9 @@ function material(p5, fn){
1558
* createCanvas(100, 100, WEBGL);
1559
* myShader = baseFilterShader().modify(() => {
1560
* let time = uniformFloat(() => millis());
1561
- * getColor((color, canvasContent) => {
+ * getColor((inputs, canvasContent) => {
1562
* inputs.texCoord.y +=
1563
- * 0.01 * sin(time * 0.001 + inputs.position.x * 5);
+ * 0.02 * sin(time * 0.001 + inputs.texCoord.x * 5);
1564
* return texture(canvasContent, inputs.texCoord);
1565
* });
1566
0 commit comments