mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 06:19:47 -05:00
These allow for the creation of materialdescriptorgenerators that use the current render pipeline
21 lines
701 B
C#
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;
|
|
}
|
|
}
|
|
} |