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
commit b749dd4fac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
{