Place the executable inside #shady
directory.
Create or modify compiler scripts in your project location to include the code:
Windows Batch Files
pre_build_step.bat
%~dp0\#shady\Shady %~dp0 --pre
post_textures.bat
%~dp0\#shady\Shady %~dp0 --post
Linux / MacOS Shell Scripts
pre_build_step.sh
#!/bin/bash
${0%/*}/#shady/Shady ${0%/*} --pre
post_textures.sh
#!/bin/bash
${0%/*}/#shady/Shady ${0%/*} --post
Changelog:
- Added shader caching so unmodified shaders won't be processed or recompiled.
Warning
Some anti-viruses may yield a false-positive warning on the binaries. There's nothing I can do for now besides waiting for binaries to get trusted over time or getting a paid code sign certificate, which is not cost-effective for the current state of the project. If you're not sure, you can compile the tool yourself from sources using Visual Studio and .NET 8.0.