mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-22 02:45:16 -05:00
22 lines
534 B
C#
22 lines
534 B
C#
using UniGLTF;
|
|
using UnityEngine;
|
|
using VRMShaders;
|
|
|
|
namespace UniVRM10
|
|
{
|
|
public class Vrm10MaterialExporter : MaterialExporter
|
|
{
|
|
public override glTFMaterial ExportMaterial(Material m, ITextureExporter textureExporter)
|
|
{
|
|
if (Vrm10MToonMaterialExporter.TryExportMaterialAsMToon(m, textureExporter, out var dst))
|
|
{
|
|
return dst;
|
|
}
|
|
else
|
|
{
|
|
return base.ExportMaterial(m, textureExporter);
|
|
}
|
|
}
|
|
}
|
|
}
|