Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MToon0X -> MToon10 material migration command #2301

Merged
merged 6 commits into from
May 30, 2024

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented May 25, 2024

image

VRM/MToon シェーダの Material アセットを VRM10/MToon10 シェーダにマイグレーションします。

これは Material アセットに完結した機能で、手動セットアップ時等に便利です。

ついでに

  • VRM0X -> VRM10 のマイグレーションのバグを修正
  • VRM10 -> MToon0X の asmdef 参照を削除

@@ -3,7 +3,6 @@
"rootNamespace": "",
"references": [
"GUID:2ef84b520212e174a94668c7a0862d3b",
"GUID:a9bc101fb0471f94a8f99fd242fdd934",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VRM10 -> MToon0X の asmdef 参照は今後のリファクタ時に障害になるので削除

@@ -355,7 +353,8 @@ public static void Migrate(glTF gltf, JsonNode vrm0)
);
}
}
dst.UvAnimationRotationSpeedFactor = mtoon.Definition.TextureOption.UvAnimationRotationSpeedValue;
const float rotationPerSecToRadianPerSec = Mathf.PI * 2f;
dst.UvAnimationRotationSpeedFactor = mtoon.Definition.TextureOption.UvAnimationRotationSpeedValue * rotationPerSecToRadianPerSec;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1826

のときにマイグレーションの方を修正できていなかった


namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
{
public class MToon0XDefinition
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こういうクラス public にしたくないのだが、現状せざるを得ない

Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ousttrue ousttrue merged commit 34c57ea into vrm-c:master May 30, 2024
@Santarh Santarh deleted the migrationMToonRefactor branch May 30, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants