From 76563cdebb5fc90c2bea2df6f02c6e3199b5eb30 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Mon, 23 Dec 2024 14:04:26 +0900 Subject: [PATCH] MatCap Texture should be 0.0 when it doesn't exist. --- .../MToon10/Shaders/vrmc_materials_mtoon_lighting_mtoon.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_lighting_mtoon.hlsl b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_lighting_mtoon.hlsl index 490c0d816..87917ac54 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_lighting_mtoon.hlsl +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_lighting_mtoon.hlsl @@ -118,7 +118,7 @@ inline half3 GetMToonLighting_Rim_Matcap(const MToonInput input) return _MatcapColor.rgb * MTOON_SAMPLE_TEXTURE2D(_MatcapTex, matcapUv).rgb; } - return _MatcapColor.rgb; + return 0; } inline half3 GetMToonLighting_Rim(const UnityLighting unityLight, const MToonInput input, const half shadow)