From c5d3b4d613eb081b69972d035cb079a8c58e02a4 Mon Sep 17 00:00:00 2001 From: notargs Date: Wed, 26 Apr 2023 17:49:45 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BF=B5=E3=81=AE=E3=81=9F=E3=82=81=E3=80=81MT?= =?UTF-8?q?OON=20URP=E3=81=A7=E5=9B=B2=E3=81=A3=E3=81=A6=E3=81=8A=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/VRM10/vrmc_materials_mtoon_forward_fragment.hlsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_forward_fragment.hlsl b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_forward_fragment.hlsl index 7685dff24..8711d82f2 100644 --- a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_forward_fragment.hlsl +++ b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_forward_fragment.hlsl @@ -55,6 +55,7 @@ half4 MToonFragment(const FragmentInput fragmentInput) : SV_Target mtoonInput.alpha = alpha; half4 col = GetMToonLighting(unityLighting, mtoonInput); + #ifdef MTOON_URP #ifdef _ADDITIONAL_LIGHTS uint pixelLightCount = GetAdditionalLightsCount(); for (uint lightIndex = 0u; lightIndex < pixelLightCount; ++lightIndex) @@ -63,6 +64,7 @@ half4 MToonFragment(const FragmentInput fragmentInput) : SV_Target col.rgb += GetMToonLighting(additionalUnityLighting, mtoonInput).rgb; } #endif + #endif // Apply Fog #ifdef MTOON_URP