Use simplified custom shadergraph on import.

オープン
#830 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@robertdorn83 がすでに取り組んでいます。

2025年4月2日 から。

評価

この issue はまだ評価されていません。

説明

docs

Hey, thanks for your work on UnityGLTF.

I would like to use a custom shadergraph that just has the most essential features to save on performance for a mobile application. That shader would just have DiffAlpha, Norm, ORM, and optionally an Emis texture. No fancy features and no texture transform.

Would this give me a performance improvement in comparison to the PBRGraph shader? If I inspect the PBRGraph, I can see a lot of nodes that would not be neccessary for my simple usecase (after stripping shader variants with the boolean keywords).

It would be nice if a different shader could be selected in the import options. My usecase is only editor import, not runtime. This would also allow for SimpleLit PBR approximations.

At the moment, is there any way to do this without extracting all the materials and manually assigning a different shader?

Thank you
Ludwig

主要言語
C#
スター
2.3k
フォーク
539
平均マージ
3日 15時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KhronosGroup/UnityGLTF のほかの issue

KhronosGroup/UnityGLTF の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。