From 6b02280c19a5199a5f00a2f7eec38b4f85b6ab9e Mon Sep 17 00:00:00 2001 From: notargs Date: Wed, 2 Nov 2022 17:32:17 +0900 Subject: [PATCH] =?UTF-8?q?RimLight=E3=81=AE=E8=A8=88=E7=AE=97=E6=99=82?= =?UTF-8?q?=E3=81=ABNaN=E3=81=8C=E7=B4=9B=E3=82=8C=E8=BE=BC=E3=82=80?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl index 1077311d8..39a3c5eb4 100644 --- a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl +++ b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl @@ -134,7 +134,7 @@ inline half3 GetMToonLighting_Rim_Matcap(const MToonInput input) inline half3 GetMToonLighting_Rim(const UnityLighting unityLight, const MToonInput input, const half shadow) { - const half3 parametricRimFactor = pow(saturate(1.0 - dot(input.normalWS, input.viewDirWS) + _RimLift), _RimFresnelPower) * _RimColor.rgb; + const half3 parametricRimFactor = pow(saturate(1.0 - dot(input.normalWS, input.viewDirWS) + _RimLift), max(_RimFresnelPower, EPS_COL)) * _RimColor.rgb; const half3 matcapFactor = GetMToonLighting_Rim_Matcap(input); const half3 directLightingFactor = unityLight.directLightColor * shadow;