mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
695 B
695 B
Install Vulkan SDK and *ensure spirv-cross
and glslc
are in PATH*.
-
Enable
dumpShaders
in config.toml -
Run
spirv-cross -V fs_0x000000.spv --output fs_0x000000.glsl
to decompile the SPIR-V IR to GLSL. -
Edit the GLSL file as you wish
-
To compile back to SPIR-V, run (change the -fshader-stage to correct stage):
glslc --target-env=vulkan1.3 --target-spv=spv1.6 -fshader-stage=frag fs_0x000000.glsl -o fs_0x000000.spv
-
Put the updated .spv file to
shader/patch
folder with the same name as the original shader -
Enable
patchShaders
in config.toml