Skip to content

Commit 37c9178

Browse files
committed
improve noise shader example w describe() and intro.
1 parent 9f7b632 commit 37c9178

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/webgl/material.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,14 +684,15 @@ function material(p5, fn) {
684684
* }
685685
* ```
686686
*
687-
* We can use the `noise()` function built into strands to generate a color for each pixel. Again we'll animate by setting an announced uniform variable - time - with `setUniform()` each frame.
687+
* We can use the `noise()` function built into strands to generate a color for each pixel. (Again no need here for underlying content for the filter to operate on.) Again we'll animate by passing in an announced uniform variable `time` with `setUniform()`, each frame.
688688
*
689689
* ```js example
690690
* let myFilter;
691691
*
692692
* function setup() {
693693
* createCanvas(100, 100, WEBGL);
694694
* myFilter = buildFilterShader(noiseShaderCallback);
695+
* describe('Evolving animated cloud-like noise in cyan and magenta');
695696
* }
696697
*
697698
* function noiseShaderCallback() {

0 commit comments

Comments
 (0)