-
Notifications
You must be signed in to change notification settings - Fork 439
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
Conversation
@@ -3,7 +3,6 @@ | |||
"rootNamespace": "", | |||
"references": [ | |||
"GUID:2ef84b520212e174a94668c7a0862d3b", | |||
"GUID:a9bc101fb0471f94a8f99fd242fdd934", |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
のときにマイグレーションの方を修正できていなかった
|
||
namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X | ||
{ | ||
public class MToon0XDefinition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こういうクラス public にしたくないのだが、現状せざるを得ない
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
VRM/MToon
シェーダの Material アセットをVRM10/MToon10
シェーダにマイグレーションします。これは Material アセットに完結した機能で、手動セットアップ時等に便利です。
ついでに