Skip to content

Conversation

@anatawa12
Copy link
Owner

@anatawa12 anatawa12 commented Aug 30, 2025

This PR adds new version of MaterialToonLit: Merge Material.
This new component:

  • Persists materials to save by Material reference instead of material index.
  • Supports many shaders with information provided by ShaderInformation.

Closes #68 improve UI of Merge ToonLit
Closes #273 Merge MaterialをlilToonに対応させて欲しい
Closes #363 merge toonlit/materialのマテリアル指定がMergeSkinnedMeshの変更にすごく弱い
Closes #1455 More ShaderSupport for MergeToonLit / Merge Material
Closes #1519 Request for lilToonMultiOutline

TODOs:

  • Component Definition
  • Implement the component
    • Consider how do we handle non-uv0 textures.
  • Consider extending shaderInformation for colored / weighted textures => We don't for now.
  • Warnings on the Inspector
  • Consider way to customize non-maintex size and format
  • Feature to migrate MergeToonLit to MergeMaterial
  • Reimplement MergeToonLit with new MergeMaterial implementation we don't
  • Write documentation

@anatawa12 anatawa12 marked this pull request as ready for review October 22, 2025 06:28
@anatawa12

This comment was marked as off-topic.

Copy link
Collaborator

@Sayamame-beans Sayamame-beans left a comment

Choose a reason for hiding this comment

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

言語ファイルとドキュメント内の説明は後で見ます
一旦それ以外を投げておきます

Comment on lines 14 to 15
このコンポーネントは非推奨です。代わりに[Trace and Optimize](../trace-and-optimize)`使われていないObjectを自動的に削除する`を使用してください。
このコンポーネントの動作が改善されることはありません。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
このコンポーネントは非推奨です。
代わりに[Trace and Optimize](../trace-and-optimize)`使われていないObjectを自動的に削除する`を使用してください。\
このコンポーネントの動作が改善されることはありません。

Comment on lines 14 to 15
This component is obsolete. You should use `Remove unused Objects` of [Trace and Optimize](../trace-and-optimize) instead.
This component will never get algorithm improvements.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
This component is obsolete.
You should use `Remove unused Objects` of [Trace and Optimize](../trace-and-optimize) instead.\
This component will never get algorithm improvements.

Make Childrenの方はdeprecated表記になってたことに気付きました。使い分けの意図がなければどちらかに揃えておいても良いですね。

Copy link
Owner Author

Choose a reason for hiding this comment

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

一応後継があるかって違いはあるけど揃えてもいかもしれない

Copy link
Collaborator

Choose a reason for hiding this comment

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

なるほど
任せます

msgstr "代表マテリアル"

msgid "MergeMaterial:Reference Material:tooltip"
msgstr "統合先のマテリアルとして使用されるマテリアルです。このマテリアルのシェーダーの設定が統合後のマテリアルに使用されます。"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
msgstr "統合先のマテリアルとして使用されるマテリアルです。このマテリアルのシェーダーの設定が統合後のマテリアルに使用されます。"
msgstr "統合後のマテリアルのシェーダー設定に利用されます。"

Copy link
Owner Author

Choose a reason for hiding this comment

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

シェーダーの設定って書き方が良くないか。テクスチャ以外のプロパティ全部これからコピペされます


msgid "MergeToonLitMaterial:suggestMigrate"
msgstr ""
"MergeToonLitMaterial is obsoleted by MergeMaterial wich supports more shaders!\n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"MergeToonLitMaterial is obsoleted by MergeMaterial wich supports more shaders!\n"
"MergeToonLitMaterial is obsoleted by MergeMaterial which supports more shaders and has better save format!\n"

msgstr "Multiple merge settings uses same material as a source material. This is not supported behavior."

msgid "MergeMaterial:error:MaterialNotFoundInMesh"
msgstr "The material configured in the MergeMaterial is not exists in the Skinned Mesh Renderer."
Copy link
Collaborator

Choose a reason for hiding this comment

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

configuredって統合前後でいうとどっちでしょうか

Copy link
Owner Author

Choose a reason for hiding this comment

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

統合後のマテリアルって設定ないかな。統合前のほとんど参照とテクスチャ参照用のマテリアルなので

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants