Using cycle-values to toggle shaders?
Hi everybody. Here's the input.conf
code I'm currently using for a given shader (FSR being an example):
F1 no-osd change-list glsl-shaders set "~~/shaders/FSR.glsl"; show-text "AMD FSR is ON"
F2 no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"
So F1 turns the wanted shader on, and F2 turns all shaders off (I don't know how to turn only a shader off).
I'd like to use only one key to toggle a given shader on and off. I'm already doing that with audio and video filters. Here's an example for toggling an audio compressor on and off:
F3 cycle-values af "lavfi=[loudnorm=i=-14.0:lra=13.0:tp=-1.0]" ""
Unfortunately I don't know how to achieve a similar result with a shader. Could somebody help me with the relevant code? Thanks!