Added support for billboard sphere export.

This commit is contained in:
左右看
2025-08-03 08:34:26 +08:00
parent ad5ff72ad9
commit 293df1f5b3
3 changed files with 197 additions and 0 deletions
@@ -10,6 +10,8 @@ using System.IO;
using UnityEngine;
using static LibMMD.Model.Morph;
using static LibMMD.Model.SkinningOperator;
using static BillboardBuilder;
//using UnityGLTF;
@@ -26,6 +28,7 @@ public class ModelExporter
container.EnableEyeTracking = false;
container.FaceDrivenKeyTarget?.FacialResetAll();
AddBlendShape(container);
BuildBillboard(container);
var textures = TextureExporter.ExportAllTexture(Path.GetDirectoryName(path), container.gameObject);
var model = ReadPMXModel(container.CharaEntry, container, textures);
@@ -38,6 +41,7 @@ public class ModelExporter
writer.Close();
fileStream.Close();
RemoveBillboard(container);
ClearBlendShape(container);
UmaViewerUI.Instance.ShowMessage($"PMX Save at {path}", UIMessageType.Success);
}