UniVRM/Assets/VRM/Runtime/IO/MaterialIO/VRMRenderPipelineMaterialDescriptorGeneratorUtility.cs
thoxey 88588bf111 Adds a new trio of utility classes
These allow for the creation of materialdescriptorgenerators that use the current render pipeline
2023-07-25 12:23:25 +01:00

21 lines
701 B
C#

using UniGLTF;
using VRM;
namespace UniVRM
{
public class VrmRenderPipelineMaterialDescriptorGeneratorDescriptorUtility : RenderPipelineMaterialDescriptorGeneratorUtility
{
public static IMaterialDescriptorGenerator GetValidVrm10MaterialDescriptorGenerator(glTF_VRM_extensions vrm)
{
switch (GetRenderPipelineType())
{
case RenderPipelineTypes.UniversalRenderPipeline:
return new UrpVrmMaterialDescriptorGenerator(vrm);
case RenderPipelineTypes.BuiltinRenderPipeline:
return new BuiltInVrmMaterialDescriptorGenerator(vrm);
}
return null;
}
}
}