Skip to content

A tool to recompile binary maxwell shaders (found on nintendo switch) to glsl

License

Notifications You must be signed in to change notification settings

DCNick3/shader-compiler-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A tool to recompile binary maxwell shaders (found on nintendo switch) to glsl

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published