Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.19 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.19 KB

shader-compiler-rs

A thin wrapper around the Hades - Yuzu Shader Recompiler, which allows to recompile binary NVN shaders into GLSL, found in many Nintendo Switch games.

Installation & Usage

Install with:

git clone https://github.com/DCNick3/shader-compiler-rs
cd shader-compiler-rs
cargo install --path cli

Usage:

shader-compiler-cli shader.bin shader.glsl

shader.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.

Thanks

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 =)

License

Same as the skyline's fork of Yuzu Shader Recompiler (Hades), this tool is licensed under the MPL-2.0 license.