diff --git a/Shaders/Kaj/Editor/KajShaderOptimizer.cs b/Shaders/Kaj/Editor/KajShaderOptimizer.cs index 10185b6..1aa2455 100644 --- a/Shaders/Kaj/Editor/KajShaderOptimizer.cs +++ b/Shaders/Kaj/Editor/KajShaderOptimizer.cs @@ -17,7 +17,7 @@ public class ShaderOptimizer // For some reason, 'if' statements with replaced constant (literal) conditions cause some compilation error // So until that is figured out, branches will be removed by default // Set to false if you want to keep UNITY_BRANCH and [branch] - public static bool RemoveUnityBranches = false; + public static bool RemoveUnityBranches = true; // LOD Crossfade Dithing doesn't have multi_compile keyword correctly toggled at build time (its always included) so // this hard-coded material property will uncomment //#pragma multi_compile _ LOD_FADE_CROSSFADE in optimized .shader files diff --git a/Shaders/Kaj/PBR.shader b/Shaders/Kaj/PBR.shader index fb4de83..0c59542 100644 --- a/Shaders/Kaj/PBR.shader +++ b/Shaders/Kaj/PBR.shader @@ -393,7 +393,7 @@ Shader "Kaj/PBR" [ToggleUI]_DebugOcclusion("Occlusion", Int) = 0 [HideInInspector]end_Debug("", Int) = 0 - [KajLabel]_Version("Shader Version: 22", Int) = 22 + [KajLabel]_Version("Shader Version: 23", Int) = 23 } CustomEditor "Kaj.ShaderEditor"