Shader hotkeys next prev error - also enable disable hotkeys?

Wow there are a lot of cool shaders in Retroarch! I just had to say that first.

Now the question. I can’t get the M and N hotkeys for next prev shader to work. I can set a shader through the ingame menu > shader options > load shader preset > some shader . But even when I load a shader from a folder that has more shaders in it once I go back to the game the M and N hotkeys has no effect. This with the latest Windows nightly.

Second question: is it possible to set some key to toggle the currently loaded shader on/off? If not is there some shader that is empty that is the game looks the same as if no shader was loaded?

The hotkeys will only switch between cg and cgp shaders in the root of the Video Shader Dir you have set in your directory settings. Pixellate is a good “neutral” shader since it just evens out pixels at non-integer scaling.

Thanks. I tried out a bunch of shaders and copied a handful of those I liked best to the retroarch\shaders\ folder (which I believe was the default folder) . I then had to edit the copied .cpg files to make the path to the .cg file correct.

How do I save one particular shader as the default, to be applied automatically for games?

I think (not sure though) I could do that before by setting the retroarch.cfg line

video_shader = “:\shaders\shaders_cg\retro\pixellate.cgp”

But that doesn’t work for me in latest nightly ( 2015-12-29 , http://buildbot.libretro.com/nightly/windows/x86_64/ ).

Hmm. Still works fine here (linux 64bit)

Weird. I doublechecked the cfg. Here are the shader related settings there that looks relevant to this

video_shader_dir = “:\shaders” video_shader_enable = “true” video_shader = “:\shaders\shaders_cg\retro\pixellate.cgp”

I have verified that pixellate.cgp and pixellate.cg exist and I can load that shader with the hotkey in game without problem (after the setup step of copying pixellate.cgp to \shaders and editing the path inside it that Awakened taught me above)

edit: verbose log has these lines

RetroArch [INFO] :: [GL]: Default shader backend found: glsl. RetroArch [INFO] :: [GL]: Not loading any shader.

Can’t find any cfg item to force use of shaders_cg

edit2: got a bit further, the video_shader value I’d set was cleared by Retroarch when the shader load failed, it seems. I put the value back and then the verbose log says:

RetroArch [INFO] :: [GL]: Default shader backend found: glsl. RetroArch [INFO] :: [GL]: Using Cg shader backend. RetroArch [INFO] :: [Cg]: Vertex profile: arbvp1 RetroArch [INFO] :: [Cg]: Fragment profile: arbfp1 RetroArch [INFO] :: Loading Cg meta-shader: <root folder>\shaders\shaders_cg\retro\pixellate.cgp RetroArch [INFO] :: Loading Cg shader: “<root folder>\shaders\shaders_cg\retro\shaders/pixellate.cg”. RetroArch [INFO] :: CG: Found semantic “POSITION” in prog #1. RetroArch [INFO] :: CG: Found semantic “TEXCOORD” in prog #1.

But the shader is still not applied.

When I try with older nigthly from october setting video_shader to pixellate does work.

Edit3: I found the problem: a bad user! :slight_smile: I had a per core config where video_shader was blank. Updated that and now it works. The shader works that is, the workings of my brain is more uncertain. :smiley:

Ha, no problem! Glad you got it figured out.