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

Add shader support #324

Open
TristanCacqueray opened this issue Jan 5, 2025 · 2 comments
Open

Add shader support #324

TristanCacqueray opened this issue Jan 5, 2025 · 2 comments
Labels
enhancement New feature or request hydra Related to Hydra

Comments

@TristanCacqueray
Copy link

Example: pastagang/nudel#41

It's still unclear how to let strudel/hydra/shader pass value between each other. I don't know much about hydra, but I think we should figure out how it can use the webgl canvas as a source for further processing. Then we would have:

[strudel pattern]   --> [shader uniform] --> [hydra source image]

Demo in action: https://www.youtube.com/watch?v=o3Zy4Dwqw7U

@munshkr
Copy link
Owner

munshkr commented Jan 5, 2025

Love the idea of having raw shaders in Flok!

It's possible you could pass the shader as a hydra "source", but I don't know how hard this would be in general.

About data passing between languages, it's a big topic but super interesting and it'd be great to have a way to integrate all visual languages with sound languages. We can start with this particular case to start playing with the idea.

@munshkr munshkr added enhancement New feature or request hydra Related to Hydra labels Jan 5, 2025
@TristanCacqueray
Copy link
Author

TristanCacqueray commented Jan 5, 2025

That's great to hear, it looks like this feature could be implemented similarly to #322 .

For reference, here is an earlier prototype: tidalcycles/strudel#1196 and a companion post: https://github.com/mrange/shader-advent-2024/blob/main/day-02/SmoothMidiModulation.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hydra Related to Hydra
Projects
None yet
Development

No branches or pull requests

2 participants