[Feature Request/Improvement on PBR Consistency] IOR value of UnityGLTF shader must apply to non-transparent material.

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, unity

調査の方向性

ソースファイルもテストも指定されていません。まず、IOR に関する UnityGLTF のシェーダーおよびマテリアル処理を見つけ、次にその動作を説明されている Blender の例と比較してください。IOR が Volume を必要とせずに不透明なマテリアルに目に見える影響を与え、既存の透明性の動作も維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug 💬

This question/request first came up during another issue ticket (https://github.com/KhronosGroup/UnityGLTF/issues/857) but it was not directly related so I'm posting it as a separate feature request for your consideration. I believe this would increase the compatibility and visual consistency between UnityGLTF and other PBR software such as Blender.

I'm not a graphical programming expert so please forgive my way of describing this.

I think the implementation of UnityGLTF shader considers IOR as being a transparency property but in PBR systems, IOR value controls the base color of a non-transparent material as shown in the Blender screenshots below.

UnityGLTF Readme documentation mentions enabling Transmission and Volume (optional). When I enable Transmission and increase its value, I still don't see any effect on the material while changing the IOR value. Enabling Volume finally starts to show the IOR effect on the material... BUT...

I was expecting IOR to work on NON-TRANSPARENT materials similar to what I see in Blender. I am not expert on these graphical stuff but, as far as I can observe in blender, IOR is not only related to the transparency of the object. It affects the base color of the material and specular strength even for non-transparent materials.

Image
Image
Steps to reproduce 🔢

This is a feature request.

Files to reproduce the issue ♻

No response

Editor Version 🎲

Other (Provide details below)

Render Pipeline and version

Not related

UnityGLTF Version

Not related

Operating System 👩‍💻

Other (Provide details below)

When does this problem happen?
  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export
Additional Info 📜

No response

Validations 🩹
主要言語
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 を短くまとめたダイジェスト。