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 1
1
function 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){
533
533
* let myShader;
534
534
*
535
535
* async function setup() {
536
- * myShader = await loadFilterShader('assets/shader .frag');
536
+ * myShader = await loadFilterShader('assets/basic .frag');
537
537
* createCanvas(100, 100, WEBGL);
538
538
* noStroke();
539
539
* }
@@ -543,15 +543,15 @@ function material(p5, fn){
543
543
* shader(myShader);
544
544
*
545
545
* // rect gives us some geometry on the screen
546
- * rect(0, 0 , width, height);
546
+ * rect(-50, -50 , width, height);
547
547
* }
548
548
* </code>
549
549
* </div>
550
550
* @alt
551
551
* A rectangle with a shader applied to it.
552
552
*/
553
553
fn . loadFilterShader = async function ( fragFilename , successCallback , failureCallback ) {
554
- p5 . _validateParameters ( 'loadFilterShader' , arguments ) ;
554
+ // p5._validateParameters('loadFilterShader', arguments);
555
555
try {
556
556
// Load the fragment shader
557
557
const fragSrc = await this . loadStrings ( fragFilename ) ;
You can’t perform that action at this time.
0 commit comments