nleseul/obs-shaderfilter

Hotkeys

Opened this issue · 1 comments

Should it be possible to bind hotkeys to edit values in the shader?
I have seen that there is no option to add keybinds to filters which already is a big downside. (Just a simple toggle feature should have been a good step)
What should have been the perfect feature for this if this was to be implemented into the shader itself should be to have some sort of step value of some sort. Say that you have one keybind to set a value in a shader to 1, then another to set it to 0. If you had step enabled it should smoothly transition from 1 to 0 depending on the step value.

I really like this idea... I'd have to do some thinking about how to identify values that should be associated with hotkeys, though. They'd be uniform bools or floats as far as the shader is concerned, but they'd need to be distinguished from values that just use normal checkboxes or sliders. Maybe one could just set up a separate table of hotkey bindings that reference the shader variables?

The HLSL specification does seem to include support for annotations, which would be perfect for something like this, but I'd have to check if OBS's effect parser can handle that syntax.

Short answer: I'd love it, but don't know when I'll get to work on it and it would take somethought. Contributions welcome!