Adding RetroArch Shader Sets to Retrobat
Retrobat comes bundled with a set of shaders, however it does not include all shaders available in Retroarch.
You can manually add new Shader Sets to the Retrobat menu for libretro cores, here is the procedure.
Shaders available in Retrobat are located in the
\system\shaders\configsfolder of your Retrobat installation.
Shaders available in Retroarch are located in the
\retroarch\shaders\folder of your Retrobat installation.
They are sorted first by type of shader (glsl or slang):
- GLSL: Shader format available to OpenGL.
- Slang: New and recommended shader format, when available. Compatible with Vulkan, Direct3D 10/11/12, OpenGL Core.
Retrobat will automatically search in the right folder based on the video driver defined for the system.
Example of shader folders for GLSL:
Let's say you want to add the Shader "advcartoon" to Retrobat, the shader is available both for GLSL and SLANG:
The shader is located in the
\retroarch\shaders\shaders_xxxx\celfolder and is named "advcartoon.glslp".
To add it to Retrobat, go to the
\system\shaders\configsfolder and create a new folder, name it for example "advcartoon":
Inside this folder, create a file called "rendering-defaults.yml":
Open the file with your notepad and add the following text:
shader: <retroarch shader folder>/<shader filename without extension>
In our example it will be:
The shader set will now appear in Retrobat: