fix direcitonal light attenuation multiply.

This commit is contained in:
Masataka SUMI
2021-07-15 19:57:43 +09:00
parent 1549db1a81
commit 8e0322aa70

View File

@@ -46,8 +46,8 @@ inline half GetMToonLighting_Shade(const UnityLighting lighting, const MToonInpu
if (MToon_IsForwardBasePass())
{
const half shadeInput = lerp(-1, 1, mtoon_linearstep(-1, 1, dotNL) * lighting.directLightAttenuation);
return mtoon_linearstep(-1.0 + shadeToony, +1.0 - shadeToony, shadeInput + shadeShift);
const half shadeInput = lerp(-1, 1, mtoon_linearstep(-1, 1, dotNL));
return mtoon_linearstep(-1.0 + shadeToony, +1.0 - shadeToony, shadeInput + shadeShift) * lighting.directLightAttenuation;
}
else
{