video_shader_watch_files ON
-
Does anybody know of a way to get RetroArch to apply a shader while a game is running?
I have a python script running off GPIO that replaces contents of the referenced global.glslp file.video_shader_watch_files ON retroarch setting turned on in RGUI does not seem to get it to update based on a loaded glslp file.
I replaced contents of it.
Overwrite it, etc.
Anybody know what it is watching? -
@flagrant99
configs/all/retroarch/config/global.glslp
has
#reference "../shaders/global.glslp"So shaders/global.glslp is the file I mess around with and have the watch on.
When I cp or replace contents etc.
with watch on, I see the UI detect a change but it refuses to take.Instead Retroarch writes
shaders/retroarch.glslp with what ever I had and some extra stuff.Maybe I have to write to write retroarch.glslp?
-
@flagrant99 I tried different file names, and video_shader_delay=3. None of it matters. Best I can tell video_shader_watchFiles does detect a change but instead of loading the changes retroarch refuses to load any changes and instead keeps the old settings and writes them to retroarch.glslp. Writing any changes directly to retroarch.glslp is futile. It simply erases what I wrote and re-writes the old glslp settings. I also know about next shader - previous shader but those aren't precise. I wanted to map specific shaders to GPIO pins. Well at least I can get it work when the game isn't running. Just have to quit - restart game.
-
@flagrant99 I have since learned some things.
glsl Shader format available to OpenGL.
glslp for GLSL stack these shaders to create a combined effect.Only a glsl will get reloaded not the glslp with video_shader_watch_files ON.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.