Commit Graph

12 Commits

Author SHA1 Message Date
ousttrue
be20563059 GetComponent を置き換え。
TryGetComponent
GetComponentOrThrow(拡張関数)
GetComponentOrNull(拡張関数)

sample と test は据え置き
2024-07-24 22:09:30 +09:00
Masataka SUMI
e9da5e2b7b mv VRMShaders namespace to UniGLTF 2024-07-20 23:47:45 +09:00
ousttrue
b69a58997e keep BlendShape normal 2024-06-24 20:26:13 +09:00
ousttrue
a0ea3ad2e5 cleanup 2024-06-24 17:54:14 +09:00
ousttrue
85bfe4bcd1 fix blendshape bake.
簡単になるように処理順をみなおし。

            var mesh = src.sharedMesh.Copy(false, ".baked");
            src.BakeMesh(mesh);
            CopyBlendShapes(src, mesh);

            var m = Matrix4x4.TRS(Vector3.zero, src.transform.rotation, Vector3.one);
            mesh.ApplyMatrixAlsoBlendShapes(m); // 最後の一回だけまとめて matrix を適用する
2024-06-24 17:39:27 +09:00
ousttrue
2be66df5aa fix no weight bone 2023-12-11 13:34:25 +09:00
ousttrue
cf4dfb0fdb BoneWeight の無い SkinndedMeshRenderer への bake transform 2023-12-08 18:30:48 +09:00
Masataka SUMI
f8ac8075e7 use static getter instead of preprocessors. 2022-11-03 20:58:14 +09:00
ousttrue
9b6d0e08da MeshIntegratorからExcludeを分離。Wizardの除外対象をRendererからMeshに変更 2022-03-04 21:36:33 +09:00
ousttrue
ce496954c1 meshを正規化するときに、法線を正規化する。
さもないと blendshape が壊れる
2021-11-08 16:07:02 +09:00
ousttrue
56db0e2e54 rename namespace MeshUtility to UniGLTF.MeshUtility
* MeshUtility と UniGLTF に重複していたクラスを削除
2021-06-01 18:09:41 +09:00
ousttrue
a07d00fcd2 MeshUtility を UniGLTF の SubFolder に移動。asmdef を削除 2021-04-19 15:19:30 +09:00