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

Ouverte
#894 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
À l'abandon
Stack technique
csharp, unity

Piste de recherche

Aucun fichier source ni test n'est nommé. Commencez par localiser la gestion des shaders et des matériaux de UnityGLTF pour IOR, puis comparez son comportement avec les exemples Blender décrits ; la tâche est terminée lorsque IOR affecte visiblement les matériaux non transparents sans nécessiter Volume, tout en préservant le comportement de transparence existant.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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 🩹
Langage dominant
C#
Étoiles
2.3k
Forks
539
Merge moyen
3 j 15 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de KhronosGroup/UnityGLTF

Toutes les issues de KhronosGroup/UnityGLTF

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.