念のため、MTOON URPで囲っておく

This commit is contained in:
notargs
2023-04-26 17:49:45 +09:00
parent f970da6f3a
commit c5d3b4d613

View File

@@ -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