Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added loadFilterShader function #7445

Open
wants to merge 5 commits into
base: dev-2.0
Choose a base branch
from

Conversation

Rishab87
Copy link
Contributor

Resolves #6852

Changes:

I have added loadFilterShader function to keep things consistent as mentioned in the issue.

Screenshots of the change:

img

PR Checklist

src/webgl/material.js Outdated Show resolved Hide resolved
Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Thanks, your updates look great! Just one tiny change I noticed in the formatting of the example code and then I think we're good to go.

src/webgl/material.js Outdated Show resolved Hide resolved
* @param {Function} [failureCallback] callback to be called if there is an error
* loading the shader. Will be passed the
* error event.
* @return {Promise<p5.Shader>} a promise that resolves with a shader object
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks good @Rishab87 !

@limzykenneth we probably need to update the docs for other load* methods to indicate they return promises now if we haven't already, and likely we will need to update the FES code to handle templated Promise types

Co-authored-by: Dave Pagurek <[email protected]>
@Rishab87
Copy link
Contributor Author

fixed the formatting

@Rishab87
Copy link
Contributor Author

@davepagurek do tell if anything else needs to be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants