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

UniUniltでMultiply設定の時以外に自動で頂点カラーを落とす変更 #569

Merged
merged 21 commits into from
Oct 6, 2020

Conversation

ousttrue
Copy link
Contributor

@ousttrue ousttrue commented Oct 1, 2020

#565

material vcolor export
UniUnlit multiply export
UniUnlit none not export
MToon - not export
Standard - not export

TODO: エクスポートダイアログの Mesh タブのカスタムエディタ

@ousttrue ousttrue changed the title [WIP] UniUniltでMultiply設定の時以外に自動で頂点カラーを落とす変更 UniUniltでMultiply設定の時以外に自動で頂点カラーを落とす変更 Oct 2, 2020
@ousttrue
Copy link
Contributor Author

ousttrue commented Oct 2, 2020

mesh タブに参考情報が出るようになった。
ExportSettingsの変更に応じて計算値が変わる。

@hiroj hiroj self-requested a review October 2, 2020 04:40
Material doesn't have a float or range property '_VColBlendMode'
UnityEngine.Material:GetInt(String)
sharedMaterials に 頂点カラーを使う Unlit と 頂点カラーを使わない Unlit が混在することを検知
@ousttrue
Copy link
Contributor Author

ousttrue commented Oct 5, 2020

submesh に unlit.vcolor.multiplyunlit.vcolor.not_multiply する場合を追加。

  • 混在する場合は VColor をエクスポートする(not_multiply の表示がおかしくなる可能性はある)
  • 混在する場合は Export ダイアログにメッセージを出す

混在している場合は、 not multiply の部分に関して自動でマテリアルを MToon に変えて unlit 相当の見た目に設定することができるかもしれない。様子を見て必用そうであれば。

  • 対処方法は、not_multiply 箇所の頂点色が 白 でない場合に色が変わる => Unlit をやめる。MToon か Standard に変える

TODO: 頂点カラーで独立したドキュメントを作る。

@ousttrue ousttrue merged commit 6f21b1b into vrm-c:master Oct 6, 2020
@ousttrue ousttrue deleted the fix_vcolor_export branch April 2, 2021 04:34
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