-
Notifications
You must be signed in to change notification settings - Fork 25
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
using custom shaders #99
Comments
I think @bsansouci was playing with this at some point but we don't have any official support. Any idea of what kind of shader you would need or what kind of api you'd hope for? |
I have a simple example in processing"
Slightly pseudo-codey but a rough idea of something I'd be hoping for:
|
Thanks for the code snippet. I think @Schmavery meant more: what are you trying to do that requires a shader? What kind of visual effect are you doing that can’t be done with the current setup. |
Do you find that the One challenge is that if we do this, we have to pick a glsl version to expose and probably stick with it. IIRC there are also some minor differences between web and native glsl that we had to work around. I'm not against exposing this api as a tool for advanced users if it's able to cover most usecases but I'd love to see some examples of what sort of things you could do with it :) We used to have dreams of a glsl-like language for writing shaders written in an ocaml dsl or ppx that would typecheck at runtime haha.. but that sounds like a good thing to leave on the backburner lol. |
Saving relevant link here for me to read through later: https://github.com/processing/processing/blob/master/core/src/processing/opengl/PGraphicsOpenGL.java#L6059 |
Is there currently a way to run custom shaders?
The text was updated successfully, but these errors were encountered: