A thin wrapper around the Hades - Yuzu Shader Recompiler, which allows to recompile binary NVN shaders into GLSL, found in many Nintendo Switch games.
Building requires a GCC compiler, even on windows.
On linux you can install with:
git clone https://github.com/DCNick3/shader-compiler-rs
cd shader-compiler-rs
cargo install --path cliOn windows you need to get mingw-w64's GCC compiler. Then, in an environment with gcc available, you can build it with:
git clone https://github.com/DCNick3/shader-compiler-rs
cd shader-compiler-rs
export CC=gcc
export CXX=g++
cargo install --path cliUsage:
shader-compiler-cli shader.bin shader.glslshader.bin is the data part of the shader you pass to NVN. Note, that, unlike the Ryujinx ShaderTools, this tool accepts shaders with the 0x30-bytes NVN-specific header before the SPH.
shader.glsl is the output file. It will be overwritten if it already exists.
A big thanks to the yuzu contributors for their work on the shader recompiler, which is used in this tool.
Also, personal thanks to ByLaws and Pharynx on the ReSwitched Discord for patiently answering my questions =)
Same as the skyline's fork of Yuzu Shader Recompiler (Hades), this tool is licensed under the MPL-2.0 license.