diff --git a/Scripts/Format/VRMExporter.cs b/Scripts/Format/VRMExporter.cs index abdc32d42..7c749ebe6 100644 --- a/Scripts/Format/VRMExporter.cs +++ b/Scripts/Format/VRMExporter.cs @@ -16,7 +16,13 @@ namespace VRM { var gltf = new glTF_VRM(); gltf.asset.generator = string.Format("UniVRM-{0}.{1}", VRMVersion.MAJOR, VRMVersion.MINOR); - using (var exporter = new VRMExporter(gltf)) + using (var exporter = new VRMExporter(gltf) + { +#if VRM_EXPORTER_USE_SPARSE + // experimental + UseSparseAccessorForBlendShape=true +#endif + }) { _Export(gltf, exporter, go); diff --git a/Scripts/Format/VRMImporter.cs b/Scripts/Format/VRMImporter.cs index 18b8ca90a..cd79f8e14 100644 --- a/Scripts/Format/VRMImporter.cs +++ b/Scripts/Format/VRMImporter.cs @@ -78,8 +78,8 @@ namespace VRM public static CreateMaterialFunc GetMaterialFunc(List materials) { - var CreateDefault = gltfImporter.CreateMaterialFuncFromShader(Shader.Find("VRM/UnlitTexture")); - var CreateZWrite = gltfImporter.CreateMaterialFuncFromShader(Shader.Find("VRM/UnlitTransparentZWrite")); + var CreateDefault = gltfImporter.CreateMaterialFuncFromShader(new ShaderStore("VRM/UnlitTexture")); + var CreateZWrite = gltfImporter.CreateMaterialFuncFromShader(new ShaderStore("VRM/UnlitTransparentZWrite")); CreateMaterialFunc fallback = (ctx, i) => { var vrm = ctx.GLTF as glTF_VRM; diff --git a/UniGLTF b/UniGLTF index c8b19d3b8..ea5b240c0 160000 --- a/UniGLTF +++ b/UniGLTF @@ -1 +1 @@ -Subproject commit c8b19d3b8332cadff434a58646610abe2618f3c8 +Subproject commit ea5b240c079de93a36acc6ae187a488f6c2b7f01