New feature: Copy and paste for material edits. Now you can copy any edits done to a material and paste the those edits to any other material.
New feature: Shader optimization. MaterialEditor now replaces all shaders for all loaded objects with the copy it has loaded. This reduces the number of copies of a shader which reduces RAM usage and overall improves performance. Can be disabled in the plugin settings if it proves to be a problem.
For modders: Shader optimization also allows overriding vanilla shaders with a different shader. This makes it possible to make all items in the game load with a custom shader instead of the original. To do so, create a MaterialEditor shader mod as normal except using a shader with the same name as the one you want to override. Use responsibly.
For EmotionCreators: when Koikatsu mods are loaded they will have the shader replaced with the EmotionCreators version of that shader which will fix many mods, especially hair mods. Some mods still require a redish style normal map to work correctly in EC, but KK uses grey style normal maps. KK can use red normal maps without a problem, so I updated KoikatsuModdingTools to produce red normal maps. I rebuilt all of my mods this way so they should now function properly on both KK and EC, just update your modpack to get the latest versions. main_opaque and main_alpha shaders are excluded from shader optimization because replacing the KK version of the shader with the EC version makes it worse.
Changelog:
v2.1.1
v2.1.2
v2.1.3
v2.1.4
Requirements:
Illusion Modding API
BepInEx 5.1
Installation:
Extract the .zip to your game install
Download:
KK version for Koikatsu, EC version for EmotionCreators, AI version for AI Girl, HS2 version for HoneySelect2