Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updating the docs
  • Loading branch information
perminder-17 committed Mar 15, 2025
commit 961b6a6551fc07c85c3d0f4e15aa4c004a529b7d
4 changes: 2 additions & 2 deletions src/webgl/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ function material(p5, fn){
* let myShader;
*
* async function setup() {
* myShader = await loadFilterShader('assets/shader.frag');
* myShader = await loadFilterShader('assets/basic.frag');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there were some linking issue with vertex shader from shader.frag, so using basic.frag

Screenshot from 2025-03-16 03-50-04

* createCanvas(100, 100, WEBGL);
* noStroke();
* }
Expand All @@ -543,7 +543,7 @@ function material(p5, fn){
* shader(myShader);
*
* // rect gives us some geometry on the screen
* rect(0, 0, width, height);
* rect(-50, -50, width, height);
* }
* </code>
* </div>
Expand Down