mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-20 22:17:41 -05:00
17 lines
577 B
C#
17 lines
577 B
C#
using UniGLTF;
|
|
|
|
namespace VRM
|
|
{
|
|
public static class VrmMaterialExporterUtility
|
|
{
|
|
public static IMaterialExporter GetValidVrmMaterialExporter()
|
|
{
|
|
return RenderPipelineUtility.GetRenderPipelineType() switch
|
|
{
|
|
RenderPipelineTypes.UniversalRenderPipeline => throw new System.NotImplementedException("URP exporter not implemented"),
|
|
RenderPipelineTypes.BuiltinRenderPipeline => new BuiltInVrmMaterialExporter(),
|
|
_ => new BuiltInVrmMaterialExporter(),
|
|
};
|
|
}
|
|
}
|
|
} |