update schema done

This commit is contained in:
ousttrue 2021-08-06 16:34:43 +09:00
parent cc89cb104c
commit dd31a7d611
2 changed files with 5 additions and 7 deletions

View File

@ -83,7 +83,6 @@ namespace UniVRM10
mtoon.ShadingToonyFactor = context.ShadingToonyFactor;
// GI
// TODO: update schema
mtoon.GiEqualizationFactor = context.GiEqualizationFactor;
// Emission

View File

@ -110,12 +110,12 @@ namespace UniVRM10
// Rendering
var alphaMode = GetMToon10AlphaMode(material);
{
yield return (MToon10Prop.AlphaMode.ToUnityShaderLabName(), (float) alphaMode);
yield return (MToon10Prop.AlphaMode.ToUnityShaderLabName(), (float)alphaMode);
}
var transparentWithZWrite = GetMToon10TransparentWithZWriteMode(material, mToon);
{
yield return (MToon10Prop.TransparentWithZWrite.ToUnityShaderLabName(), (float) transparentWithZWrite);
yield return (MToon10Prop.TransparentWithZWrite.ToUnityShaderLabName(), (float)transparentWithZWrite);
}
var cutoff = material?.alphaCutoff;
@ -127,12 +127,12 @@ namespace UniVRM10
var renderQueueOffset = mToon?.RenderQueueOffsetNumber;
if (renderQueueOffset.HasValue)
{
yield return (MToon10Prop.RenderQueueOffsetNumber.ToUnityShaderLabName(), (float) renderQueueOffset);
yield return (MToon10Prop.RenderQueueOffsetNumber.ToUnityShaderLabName(), (float)renderQueueOffset);
}
var doubleSidedMode = GetMToon10DoubleSidedMode(material, mToon);
{
yield return (MToon10Prop.DoubleSided.ToUnityShaderLabName(), (float) doubleSidedMode);
yield return (MToon10Prop.DoubleSided.ToUnityShaderLabName(), (float)doubleSidedMode);
}
// Lighting
@ -164,7 +164,6 @@ namespace UniVRM10
var giEqualization = mToon?.GiEqualizationFactor;
if (giEqualization.HasValue)
{
// TODO: Update schema
yield return (MToon10Prop.GiEqualizationFactor.ToUnityShaderLabName(), giEqualization.Value);
}
@ -192,7 +191,7 @@ namespace UniVRM10
// Outline
var outlineMode = GetMToon10OutlineWidthMode(material, mToon);
{
yield return (MToon10Prop.OutlineWidthMode.ToUnityShaderLabName(), (float) outlineMode);
yield return (MToon10Prop.OutlineWidthMode.ToUnityShaderLabName(), (float)outlineMode);
}
var outlineWidth = mToon?.OutlineWidthFactor;