Skip to content

Commit 961b6a6

Browse files
committed
updating the docs
1 parent 53bad90 commit 961b6a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webgl/material.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ function material(p5, fn){
533533
* let myShader;
534534
*
535535
* async function setup() {
536-
* myShader = await loadFilterShader('assets/shader.frag');
536+
* myShader = await loadFilterShader('assets/basic.frag');
537537
* createCanvas(100, 100, WEBGL);
538538
* noStroke();
539539
* }
@@ -543,7 +543,7 @@ function material(p5, fn){
543543
* shader(myShader);
544544
*
545545
* // rect gives us some geometry on the screen
546-
* rect(0, 0, width, height);
546+
* rect(-50, -50, width, height);
547547
* }
548548
* </code>
549549
* </div>

0 commit comments

Comments
 (0)