-
Notifications
You must be signed in to change notification settings - Fork 62
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
how to use custom shaders? #17
Comments
Currently, there's no built in API to define custom shaders from the outside. However, you can easily add a new filter in the source. I.e.:
I'll happily accept pull requests for a bloom shader! |
@phoboslab thankyou, I will work on it and give a PR. |
being able to declare custom shaders from the outside could introduce another benefit: we could move the filter implementations out of the main library, and that would mean not needing to pull in every filter when using this library somewhere (i.e., I only use 2 filters in my site/app, I wouldn't need to pull in 250 lines of code that are baked into WebGLImageFilter and never used.) |
hi how can i use cutom fragment shaders? as far as i can see i can only pass a custom
colorMatrix
toaddFilter
. suppose i want to achieve bloom effect how can i go about it?The text was updated successfully, but these errors were encountered: