Warning when importing not implemented MToon property.

This commit is contained in:
Masataka SUMI
2021-05-14 17:04:47 +09:00
parent ef81a6502c
commit 2d6adb080c
2 changed files with 8 additions and 1 deletions

View File

@@ -86,6 +86,13 @@ namespace UniVRM10
yield return (MToon.Utils.PropShadeShift, shadingShift.Value);
}
var shadingShiftTextureScale = mToon?.ShadingShiftTexture?.Scale;
if (shadingShiftTextureScale.HasValue)
{
Debug.LogWarning("Need VRM 1.0 MToon implementation.");
yield return ("_NEED_IMPLEMENTATION_MTOON_1_0_shadingShiftTextureScale", shadingShiftTextureScale.Value);
}
var shadingToony = mToon?.ShadingToonyFactor;
if (shadingToony.HasValue)
{

View File

@@ -34,7 +34,7 @@ namespace UniVRM10
if (TryGetShadingShiftTexture(parser, mToon, out var shadeShiftTex))
{
Debug.LogWarning("Need VRM 1.0 MToon implementation.");
yield return ("_NEED_IMPLEMENTATION_MTOON_1_0", shadeShiftTex);
yield return ("_NEED_IMPLEMENTATION_MTOON_1_0_shadingShiftTexture", shadeShiftTex);
}
if (TryGetMatcapTexture(parser, mToon, out var matcapTex))