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