@@ -1535,18 +1535,18 @@ function material(p5, fn){
1535
1535
* </td><td>
1536
1536
*
1537
1537
* Output the final color for the current pixel. It takes in two parameters:
1538
- * `FilterInputs inputs`, and `in sampler2D content `, and must return a color
1538
+ * `FilterInputs inputs`, and `in sampler2D canvasContent `, and must return a color
1539
1539
* as a `vec4`.
1540
1540
*
1541
1541
* `FilterInputs inputs` is a scruct with the following properties:
1542
1542
* - `vec2 texCoord`, the position on the canvas, with coordinates between 0 and 1. Calling
1543
- * `getTexture(content , texCoord)` returns the original color of the current pixel.
1543
+ * `getTexture(canvasContent , texCoord)` returns the original color of the current pixel.
1544
1544
* - `vec2 canvasSize`, the width and height of the sketch.
1545
1545
* - `vec2 texelSize`, the size of one real pixel relative to the size of the whole canvas.
1546
1546
* This is equivalent to `1 / (canvasSize * pixelDensity)`.
1547
1547
*
1548
- * `in sampler2D content ` is a texture with the contents of the sketch, pre-filter. Call
1549
- * `getTexture(content , someCoordinate)` to retrieve the color of the sketch at that coordinate,
1548
+ * `in sampler2D canvasContent ` is a texture with the contents of the sketch, pre-filter. Call
1549
+ * `getTexture(canvasContent , someCoordinate)` to retrieve the color of the sketch at that coordinate,
1550
1550
* with coordinate values between 0 and 1.
1551
1551
*
1552
1552
* </td></tr>
@@ -1574,11 +1574,11 @@ function material(p5, fn){
1574
1574
* },
1575
1575
* 'vec4 getColor': `(
1576
1576
* FilterInputs inputs,
1577
- * in sampler2D content
1577
+ * in sampler2D canvasContent
1578
1578
* ) {
1579
1579
* inputs.texCoord.y +=
1580
1580
* 0.01 * sin(time * 0.001 + inputs.position.x * 5.0);
1581
- * return getTexture(content , inputs.texCoord);
1581
+ * return getTexture(canvasContent , inputs.texCoord);
1582
1582
* }`
1583
1583
* });
1584
1584
* }
0 commit comments