From 0182e974bf215ea4fe018a009030e3ad134cde26 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Wed, 2 Jun 2021 15:58:05 +0900 Subject: [PATCH] follow mtoon0.x --- .../Resources/VRM10/vrmc_materials_mtoon_lighting.hlsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting.hlsl b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting.hlsl index 982d7018f..69ed4bb1d 100644 --- a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting.hlsl +++ b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting.hlsl @@ -29,7 +29,7 @@ half4 GetMToonLighting(UnityLighting lighting, MToonLightingInput input) const half3 indirect = input.litColor * lerp(lighting.indirectLight, lighting.indirectLightEqualized, _GiEqualization); #elif defined(UNITY_PASS_FORWARDADD) - const half3 direct = input.litColor * shading * lighting.directLightColor * lerp(1, 0.5, shadingToony); + const half3 direct = input.litColor * shading * lighting.directLightColor * 0.5; const half3 indirect = 0; #else @@ -44,7 +44,7 @@ half4 GetMToonLighting(UnityLighting lighting, MToonLightingInput input) #elif defined(UNITY_PASS_FORWARDADD) const half3 emission = 0; #else - const half3 emission = 0; + const half3 emission = 0; // unexpected #endif