Closed theChaosCoder closed 3 years ago
No, in the general case, there is no way of knowing which #defines are supposed to be tunable parameters. And even if there was, I can't think of a way to pass those parameters to placebo.Shader() that isn't horribly ugly. What I could implement, though, is passing the shader directly as a string instead of a filename. That way, you could implement your own tunable shader generators in python.
I will take that, better than nothing. Some string replacement will do the rest.
Some shaders have "parameters" like:
https://github.com/bloc97/Anime4K/tree/master/glsl
Is it possible to change those parameters on the fly with placebo.Shader()? If not, would it be hard to implement?