Merge pull request #2622 from amamagi/fix/outline-mask

Fix MToon10: Use G channel for outline width tex to match the specification
This commit is contained in:
ousttrue
2025-04-03 13:38:34 +09:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ inline half MToon_GetOutlineVertex_OutlineWidth(const float2 uv)
{
if (MToon_IsParameterMapOn())
{
return _OutlineWidth * UNITY_SAMPLE_TEX2D_LOD(_OutlineWidthTex, uv, 0).x;
return _OutlineWidth * UNITY_SAMPLE_TEX2D_LOD(_OutlineWidthTex, uv, 0).g;
}
else
{