File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11function setup ( ) {
2- // put setup code here
3- }
4-
5- function draw ( ) {
6- // put drawing code here
7- }
2+ // put setup code here
3+ }
4+
5+ function draw ( ) {
6+ // put drawing code here
7+ }
Original file line number Diff line number Diff 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,15 +543,15 @@ 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>
550550 * @alt
551551 * A rectangle with a shader applied to it.
552552 */
553553 fn . loadFilterShader = async function ( fragFilename , successCallback , failureCallback ) {
554- p5 . _validateParameters ( 'loadFilterShader' , arguments ) ;
554+ // p5._validateParameters('loadFilterShader', arguments);
555555 try {
556556 // Load the fragment shader
557557 const fragSrc = await this . loadStrings ( fragFilename ) ;
You can’t perform that action at this time.
0 commit comments